fix: disable dht by default #338 (#339)

fix: correct transport config check
This commit is contained in:
Jacob Heun
2019-03-20 09:12:02 +01:00
committed by GitHub
parent da52af704e
commit e52ce66ab7
2 changed files with 11 additions and 7 deletions

View File

@ -55,7 +55,7 @@ describe('configuration', () => {
transport: [ ]
}
})
}).to.throw()
}).to.throw('ERROR_EMPTY')
})
it('should add defaults to missing items', () => {
@ -95,7 +95,7 @@ describe('configuration', () => {
},
dht: {
kBucketSize: 20,
enabled: true,
enabled: false,
randomWalk: {
enabled: false,
queriesPerPeriod: 1,
@ -152,8 +152,8 @@ describe('configuration', () => {
transport: [ WS ]
},
config: {
EXPERIMENTAL: {
dht: true
dht: {
enabled: true
}
}
}
@ -197,7 +197,7 @@ describe('configuration', () => {
},
dht: {
kBucketSize: 20,
enabled: true,
enabled: false,
randomWalk: {
enabled: false,
queriesPerPeriod: 1,