Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
test: turn off discovery to make tests run faster (#56)
Browse files Browse the repository at this point in the history
In my testing using the `test` profile for go and turning off mdns/webrtcstar
decreases the time it takes to run the files tests (at least) from 15-45s to 7s
  • Loading branch information
achingbrain authored and Alan Shaw committed Apr 4, 2019
1 parent 6058954 commit c0879f8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/utils/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ const spawnInitAndStartDaemon = (factory) => {
initOptions: {
bits: 1024
},
config: { Bootstrap: [] }
config: {
Bootstrap: [],
Discovery: {
MDNS: {
Enabled: false
},
webRTCStar: {
Enabled: false
}
}
},
profile: 'test'
}, (error, instance) => {
if (error) {
return reject(error)
Expand Down

0 comments on commit c0879f8

Please sign in to comment.