Skip to content

Commit

Permalink
fix: stop third daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 28, 2023
1 parent edaa3f1 commit 422b62a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/dht/content-routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function runContentRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions,
// Stop daemons
after(async function () {
await Promise.all(
[daemonA, daemonB]
[daemonA, daemonB, daemonC]
.filter(Boolean)
.map(async d => { await d.stop() })
)
Expand Down
10 changes: 5 additions & 5 deletions src/relay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ function relayTest (factory: DaemonFactory, aType: NodeType, bType: NodeType, re
})

afterEach(async function () {
await Promise.all([aNode, bNode, relay].map(async d => {
if (d != null) {
await d.stop()
}
}))
await Promise.all(
[aNode, bNode, relay]
.filter(Boolean)
.map(async d => { await d.stop() })
)
})

it('connects', async () => {
Expand Down

0 comments on commit 422b62a

Please sign in to comment.