Skip to content

Commit 422b62a

Browse files
committed
fix: stop third daemon
1 parent edaa3f1 commit 422b62a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/dht/content-routing.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function runContentRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions,
5656
// Stop daemons
5757
after(async function () {
5858
await Promise.all(
59-
[daemonA, daemonB]
59+
[daemonA, daemonB, daemonC]
6060
.filter(Boolean)
6161
.map(async d => { await d.stop() })
6262
)

src/relay/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ function relayTest (factory: DaemonFactory, aType: NodeType, bType: NodeType, re
4343
})
4444

4545
afterEach(async function () {
46-
await Promise.all([aNode, bNode, relay].map(async d => {
47-
if (d != null) {
48-
await d.stop()
49-
}
50-
}))
46+
await Promise.all(
47+
[aNode, bNode, relay]
48+
.filter(Boolean)
49+
.map(async d => { await d.stop() })
50+
)
5151
})
5252

5353
it('connects', async () => {

0 commit comments

Comments
 (0)