radicle-heartwood-lfs/radicle-node
Fintan Halpenny 0302701c98
node: limit number of loops in `routes_to`
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
2023-03-08 11:29:34 +00:00
..
src node: limit number of loops in `routes_to` 2023-03-08 11:29:34 +00:00
Cargo.toml node: Update `localtime` crate 2023-03-07 10:47:12 +01:00
Dockerfile Build container images for deployment 2022-12-14 17:15:40 +01:00