From 1aeee1ae91a4371bd99cce9bb1b5406f4a741f38 Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Thu, 5 Oct 2023 15:59:13 +0200 Subject: [PATCH] Fixing peer manager close handler --- .../beacon-node/test/e2e/network/peers/peerManager.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/beacon-node/test/e2e/network/peers/peerManager.test.ts b/packages/beacon-node/test/e2e/network/peers/peerManager.test.ts index 000e48dfcf3a..0fbbaa398c65 100644 --- a/packages/beacon-node/test/e2e/network/peers/peerManager.test.ts +++ b/packages/beacon-node/test/e2e/network/peers/peerManager.test.ts @@ -20,7 +20,7 @@ import {IAttnetsService} from "../../../../src/network/subnets/index.js"; import {Clock} from "../../../../src/util/clock.js"; import {LocalStatusCache} from "../../../../src/network/statusCache.js"; -const logger = testLogger(); +const logger = testLogger("peerManager"); describe("network / peers / PeerManager", function () { const peerId1 = getValidPeerId(); @@ -93,6 +93,10 @@ describe("network / peers / PeerManager", function () { null ); + afterEachCallbacks.push(async () => { + await peerManager.close(); + }); + return {statusCache, clock, libp2p, reqResp, peerManager, networkEventBus}; }