fix: discovery mechanism examples not working (#1365)

Co-authored-by: achingbrain <alex@achingbrain.net>- fixed tests that were passing even though the example isn't working
- added timeouts to avoid infinite wait

Fixes #1229
This commit is contained in:
Marin Petrunić
2022-09-05 16:17:35 +02:00
committed by GitHub
parent fc2224a1e8
commit d281a60dac
4 changed files with 14 additions and 9 deletions

View File

@ -27,7 +27,7 @@ export async function test () {
})
})
await pWaitFor(() => discoveredNodes > 1)
await pWaitFor(() => discoveredNodes > 1, 600000)
proc.kill()
}