fix: routers should only use dht if enabled (#885)

This commit is contained in:
Vasco Santos
2021-02-11 14:37:34 +01:00
committed by GitHub
parent 9941414a91
commit a34d2bbcc3
4 changed files with 10 additions and 2 deletions

View File

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