Skip to content

Commit 0ad22eb

Browse files
authored
fix: guard on nodes (#164)
If the `before` step times out, `nodes` may not be set.
1 parent c03c876 commit 0ad22eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dht/content-fetching.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function runContentFetchingTests (factory: DaemonFactory, optionsA: SpawnOptions
8080
// Stop daemons
8181
after(async function () {
8282
await Promise.all(
83-
nodes
83+
(nodes ?? [])
8484
.filter(Boolean)
8585
.map(async d => { await d.stop() })
8686
)

0 commit comments

Comments
 (0)