fix: flakey identify test firefox (#774)

This commit is contained in:
Vasco Santos 2020-10-06 15:37:01 +02:00 committed by GitHub
parent 96df4b7dc4
commit 60d437f595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
})