File tree Expand file tree Collapse file tree
framework/src/test/java/org/tron/core/net/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .tron .core .net .services ;
22
3+ import java .io .File ;
4+ import java .lang .reflect .Field ;
5+ import java .net .InetSocketAddress ;
36import org .junit .After ;
47import org .junit .Assert ;
58import org .junit .Before ;
1619import org .tron .core .net .service .sync .SyncService ;
1720import org .tron .p2p .connection .Channel ;
1821
19- import java .io .File ;
20- import java .lang .reflect .Field ;
21- import java .net .InetSocketAddress ;
2222
2323public class SyncServiceTest {
2424 protected TronApplicationContext context ;
@@ -58,7 +58,7 @@ public void test() {
5858 peer = context .getBean (PeerConnection .class );
5959 Assert .assertNull (peer .getSyncChainRequested ());
6060 Channel c1 = new Channel ();
61- InetSocketAddress a1 =new InetSocketAddress ("127.0.0.1" , 10001 );
61+ InetSocketAddress a1 = new InetSocketAddress ("127.0.0.1" , 10001 );
6262 Field field = c1 .getClass ().getDeclaredField ("inetSocketAddress" );
6363 field .setAccessible (true );
6464 field .set (c1 , a1 .getAddress ());
You can’t perform that action at this time.
0 commit comments