refactor: simplify DialRequest logic per feedback

This commit is contained in:
Jacob Heun
2019-12-04 16:27:33 +01:00
parent b7432bd02b
commit e1e3be8106
7 changed files with 36 additions and 304 deletions

View File

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