diff --git a/test/identify/index.spec.js b/test/identify/index.spec.js index 799a3ebd..1ccbf671 100644 --- a/test/identify/index.spec.js +++ b/test/identify/index.spec.js @@ -364,7 +364,7 @@ describe('Identify', () => { expect(libp2p.identifyService.identify.callCount).to.equal(1) // The connection should have no open streams - expect(connection.streams).to.have.length(0) + await pWaitFor(() => connection.streams.length === 0) await connection.close() })