Skip to content

Commit

Permalink
Fixing peer manager close handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Oct 5, 2023
1 parent ca2a6d3 commit 1aeee1a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -93,6 +93,10 @@ describe("network / peers / PeerManager", function () {
null
);

afterEachCallbacks.push(async () => {
await peerManager.close();
});

return {statusCache, clock, libp2p, reqResp, peerManager, networkEventBus};
}

Expand Down

0 comments on commit 1aeee1a

Please sign in to comment.