Skip to content

Commit bc875a2

Browse files
committed
Merge #206: integration_test: Pause after node comes up
c188d91 integration_test: Pause after node comes up (Tobin C. Harding) Pull request description: 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. ACKs for top commit: jamillambert: ACK c188d91 Tree-SHA512: 65dc7d06703c4cf29922d21215b74bcb5491b67de2d45a4c0e5454a18b7a2cf52d8d82ff9c78f18caba0d9ba3eda2d201f772011d32d144e49a5f9c616965f6d
2 parents e6f1f97 + c188d91 commit bc875a2

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)