Skip to content

Commit

Permalink
fix: disconnect additional ApiPromise connection after tests run (#1621)
Browse files Browse the repository at this point in the history
# Goal
The goal of this PR is to make sure all Frequency node connections get
closed after integration tests run.

Closes #1620 

# Checklist
- [ ] Chain spec updated
- [ ] Custom RPC OR Runtime API added/changed? Updated js/api-augment.
- [ ] Design doc(s) updated
- [ ] Tests added
- [ ] Benchmarks added
- [ ] Weights updated

Co-authored-by: Wil Wade <wil.wade@unfinished.com>
  • Loading branch information
JoeCap08055 and wilwade committed Jul 5, 2023
1 parent 0c0bb05 commit 41b41c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integration-tests/scaffolding/rootHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ exports.mochaHooks = {
},
async afterAll() {
await ExtrinsicHelper.api.disconnect();
await ExtrinsicHelper.apiPromise.disconnect();
}
}

0 comments on commit 41b41c8

Please sign in to comment.