refactor: remove test covered by interface-transport tests

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
This commit is contained in:
Alan Shaw 2019-04-18 15:30:53 +01:00
parent 01cd1fd9ea
commit 22a75f299b
No known key found for this signature in database
GPG Key ID: AFC4442246B75B6F

View File

@ -237,20 +237,6 @@ describe('dial', () => {
throw new Error('connection was not aborted')
})
it('should be abortable before connect', async () => {
const controller = new AbortController()
controller.abort() // Abort before connect
try {
await ws.dial(ma, { signal: controller.signal })
} catch (err) {
expect(err.type).to.equal('aborted')
return
}
throw new Error('connection was not aborted')
})
})
// TODO: https://github.com/libp2p/js-libp2p-websockets/issues/84