Skip to content

Commit

Permalink
chore: close connections after server close
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Oct 11, 2024
1 parent 49b2717 commit 2a0b751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/interop/test/compliance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe('pinning service compliance', function () {
})

afterEach(async () => {
server?.server.closeAllConnections()
await server?.close()
server?.server.closeAllConnections()
await helia?.stop()
})

Expand Down
2 changes: 1 addition & 1 deletion packages/interop/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ describe('pinning-service-api interop', () => {
})

afterEach(async () => {
server?.server.closeAllConnections()
await server?.close()
server?.server.closeAllConnections()
await pinningServiceHelia?.stop()
await localHelia?.stop()
})
Expand Down

0 comments on commit 2a0b751

Please sign in to comment.