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

Commit c0879f8

Browse files
achingbrainAlan Shaw
authored andcommitted
test: turn off discovery to make tests run faster (#56)
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
1 parent 6058954 commit c0879f8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/utils/daemon.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@ const spawnInitAndStartDaemon = (factory) => {
1010
initOptions: {
1111
bits: 1024
1212
},
13-
config: { Bootstrap: [] }
13+
config: {
14+
Bootstrap: [],
15+
Discovery: {
16+
MDNS: {
17+
Enabled: false
18+
},
19+
webRTCStar: {
20+
Enabled: false
21+
}
22+
}
23+
},
24+
profile: 'test'
1425
}, (error, instance) => {
1526
if (error) {
1627
return reject(error)

0 commit comments

Comments
 (0)