mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-04-25 08:32:36 +00:00
refactor: remove test covered by interface-transport tests
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
This commit is contained in:
parent
01cd1fd9ea
commit
22a75f299b
14
test/node.js
14
test/node.js
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user