mirror of
https://github.com/fluencelabs/js-libp2p-secio
synced 2025-03-15 18:00:52 +00:00
test: always use Connection instances for tests
This commit is contained in:
parent
74f6fd8ab3
commit
4d4163def5
@ -141,7 +141,7 @@ describe('secio', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we are using peerC Id on purpose to fail
|
// we are using peerC Id on purpose to fail
|
||||||
secio.encrypt(peerA, p[0], peerC, check)
|
secio.encrypt(peerA, new Connection(p[0]), peerC, check)
|
||||||
secio.encrypt(peerB, p[1], peerA, check)
|
secio.encrypt(peerB, new Connection(p[1]), peerA, check)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user