The `routes_to` function can loop infinitely during test. To prevent this from happening a number of tries variable is added. It checks that the number of tries does not exceed 30, which gives the function about 3 seconds to complete -- due to the call to `thread::sleep` using 100ms. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| Dockerfile | ||