mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-19 20:21:22 +00:00
refactor: simplify DialRequest logic per feedback
This commit is contained in:
@ -175,8 +175,9 @@ describe('Dialing (direct, TCP)', () => {
|
||||
|
||||
// Let the call stack run
|
||||
await delay(0)
|
||||
// All dials should have executed
|
||||
expect(localTM.dial.callCount).to.equal(3)
|
||||
|
||||
// Only two dials should be executed, as the first dial will succeed
|
||||
expect(localTM.dial.callCount).to.equal(2)
|
||||
expect(dialer.tokens).to.have.length(2)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user