mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-13 01:01:23 +00:00
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:
@ -27,7 +27,7 @@ export async function test () {
|
||||
})
|
||||
})
|
||||
|
||||
await pWaitFor(() => discoveredNodes > 1)
|
||||
await pWaitFor(() => discoveredNodes > 1, 600000)
|
||||
|
||||
proc.kill()
|
||||
}
|
||||
|
Reference in New Issue
Block a user