We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_listening
connection_restart_behavior
1 parent 0396fc5 commit b052f15Copy full SHA for b052f15
tests/integration_tests_rust.rs
@@ -289,7 +289,11 @@ fn do_connection_restart_behavior(persist: bool) {
289
let node_id_b = node_b.node_id();
290
291
let node_addr_b = node_b.listening_addresses().unwrap().first().unwrap().clone();
292
- std::thread::sleep(std::time::Duration::from_secs(1));
+
293
+ while !node_b.status().is_listening {
294
+ std::thread::sleep(std::time::Duration::from_millis(10));
295
+ }
296
297
node_a.connect(node_id_b, node_addr_b, persist).unwrap();
298
299
let peer_details_a = node_a.list_peers().first().unwrap().clone();
0 commit comments