File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
main/java/org/tron/common/backup/socket
test/java/org/tron/common/backup Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ public void initChannel(NioDatagramChannel ch)
95
95
public void close () {
96
96
logger .info ("Closing backup server..." );
97
97
shutdown = true ;
98
- ExecutorServiceManager .shutdownAndAwaitTermination (executor , name );
99
98
backupManager .stop ();
100
99
if (channel != null ) {
101
100
try {
@@ -104,6 +103,7 @@ public void close() {
104
103
logger .warn ("Closing backup server failed." , e );
105
104
}
106
105
}
106
+ ExecutorServiceManager .shutdownAndAwaitTermination (executor , name );
107
107
logger .info ("Backup server closed." );
108
108
}
109
109
}
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ public void tearDown() {
37
37
Args .clearParam ();
38
38
}
39
39
40
- @ Test
40
+ @ Test ( timeout = 60_000 )
41
41
public void test () throws InterruptedException {
42
42
backupServer .initServer ();
43
+ // wait for the server to start
44
+ Thread .sleep (1000 );
43
45
}
44
46
}
You can’t perform that action at this time.
0 commit comments