File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ use super::*;
10
10
11
11
const INSTALL_TIMEOUT : Duration = Duration :: from_secs ( 300 ) ;
12
12
const REBOOT_TIMEOUT : Duration = Duration :: from_secs ( 30 ) ;
13
+ /// How long to wait before proceeding after a reboot and a connection to the test-runner has been
14
+ /// re-established
15
+ const POST_REBOOT_GRACE_PERIOD : Duration = Duration :: from_secs ( 5 ) ;
13
16
const LOG_LEVEL_TIMEOUT : Duration = Duration :: from_secs ( 60 ) ;
14
17
const DAEMON_RESTART_TIMEOUT : Duration = Duration :: from_secs ( 30 ) ;
15
18
@@ -388,8 +391,7 @@ impl ServiceClient {
388
391
self . connection_handle . reset_connected_state ( ) . await ;
389
392
self . connection_handle . wait_for_server ( ) . await ?;
390
393
391
- // TODO: Get rid of this magic number.
392
- tokio:: time:: sleep ( std:: time:: Duration :: from_secs ( 5 ) ) . await ;
394
+ tokio:: time:: sleep ( POST_REBOOT_GRACE_PERIOD ) . await ;
393
395
394
396
Ok ( ( ) )
395
397
}
You can’t perform that action at this time.
0 commit comments