From 60d437f59539e6be8a5f216a63bb134fb912cc6d Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 6 Oct 2020 15:37:01 +0200 Subject: [PATCH] fix: flakey identify test firefox (#774) --- test/identify/index.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() })