Skip to content

Commit c188d91

Browse files
committed
integration_test: Pause after node comes up
We are getting intermittent test failures stating that the node is not available. `node` already includes code that hits the RPC API after the node is up so this is a little surprising. However it doesn't hurt to try waiting a little still. Just sleep for half a second after each node spins up and see if the intermittent failures go away.
1 parent e6f1f97 commit c188d91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integration_test/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ impl NodeExt for Node {
6969
conf.args.push(arg);
7070
}
7171

72-
Node::with_conf(exe, &conf).expect("failed to create node")
72+
let node = Node::with_conf(exe, &conf).expect("failed to create node");
73+
// We are getting intermittent test fails.
74+
// Just pause here to give the node time to sort itself out.
75+
std::thread::sleep(std::time::Duration::from_millis(500));
76+
node
7377
}
7478

7579
fn fund_wallet(&self) {

0 commit comments

Comments
 (0)