node/test: Add timeouts to functions that wait
The two functions connect and converge used in tests potentially
loop forever. Add timeout mechanisms to both.
1 file changed
+43
-16
90cf37c4
→
db5ec5dc
modified crates/radicle-node/src/test/node.rs
@@ -6,6 +6,7 @@ use std::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -106,22 +107,37 @@ impl<G: Signer<Signature> + cyphernet::Ecdh> NodeHandle<G> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -577,6 +593,12 @@ pub fn converge<'a, G: Signer<Signature> + cyphernet::Ecdh + 'static>(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -594,6 +616,11 @@ pub fn converge<'a, G: Signer<Signature> + cyphernet::Ecdh + 'static>(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|