mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-15 10:11:22 +00:00
fix: routers should only use dht if enabled (#885)
This commit is contained in:
@ -132,6 +132,10 @@ describe('peer-routing', () => {
|
||||
|
||||
afterEach(() => node.stop())
|
||||
|
||||
it('should only have one router', () => {
|
||||
expect(node.peerRouting._routers).to.have.lengthOf(1)
|
||||
})
|
||||
|
||||
it('should use the delegate router to find peers', async () => {
|
||||
const deferred = pDefer()
|
||||
const [remotePeerId] = await peerUtils.createPeerId({ fixture: false })
|
||||
|
Reference in New Issue
Block a user