From 41b41c82808fc5525ff5c450079a430f09cd21d7 Mon Sep 17 00:00:00 2001 From: Joe Caputo Date: Wed, 5 Jul 2023 13:25:49 -0400 Subject: [PATCH] fix: disconnect additional ApiPromise connection after tests run (#1621) # 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 --- integration-tests/scaffolding/rootHooks.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/integration-tests/scaffolding/rootHooks.ts b/integration-tests/scaffolding/rootHooks.ts index 89f49aaa24..13a03114ef 100644 --- a/integration-tests/scaffolding/rootHooks.ts +++ b/integration-tests/scaffolding/rootHooks.ts @@ -34,5 +34,6 @@ exports.mochaHooks = { }, async afterAll() { await ExtrinsicHelper.api.disconnect(); + await ExtrinsicHelper.apiPromise.disconnect(); } }