File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,9 @@ impl RunningServer {
148
148
let mut process = command. spawn ( ) . expect ( "Failed to spawn process" ) ;
149
149
150
150
// Give the server a chance to start up.
151
- thread:: sleep ( time:: Duration :: from_millis ( 500 ) ) ;
151
+ // TODO: It would be better to poll by retrying a few times if the
152
+ // connection is refused.
153
+ thread:: sleep ( time:: Duration :: from_secs ( 1 ) ) ;
152
154
153
155
// The server may have failed to start if the content directory was invalid.
154
156
if let Ok ( Some ( _) ) = process. try_wait ( ) {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl RunningServer {
72
72
// Give the server a chance to start up.
73
73
// TODO: It would be better to poll by retrying a few times if the
74
74
// connection is refused.
75
- thread:: sleep ( time:: Duration :: from_millis ( 500 ) ) ;
75
+ thread:: sleep ( time:: Duration :: from_secs ( 1 ) ) ;
76
76
77
77
// The server may have failed to start if the content directory was
78
78
// invalid.
You can’t perform that action at this time.
0 commit comments