From f605e9b426c2691939b1fe46d8a8e601996dfa05 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 15 Nov 2024 15:12:52 +0000 Subject: [PATCH] chore: fix event order --- packages/integration-tests/test/circuit-relay.node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integration-tests/test/circuit-relay.node.ts b/packages/integration-tests/test/circuit-relay.node.ts index b829c08e12..57d1cf95c5 100644 --- a/packages/integration-tests/test/circuit-relay.node.ts +++ b/packages/integration-tests/test/circuit-relay.node.ts @@ -519,8 +519,8 @@ describe('circuit-relay', () => { await deferred.promise // should have closed connections to remote and to relay - expect(events[0].detail.remotePeer.toString()).to.equal(relay1.peerId.toString()) - expect(events[1].detail.remotePeer.toString()).to.equal(remote.peerId.toString()) + expect(events[0].detail.remotePeer.toString()).to.equal(remote.peerId.toString()) + expect(events[1].detail.remotePeer.toString()).to.equal(relay1.peerId.toString()) }) it('should mark an outgoing relayed connection as limited', async () => {