From c0879f8fdf7be2def2fbd515288a4c65402fc2a8 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 4 Apr 2019 13:06:03 +0100 Subject: [PATCH] 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 --- test/utils/daemon.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/utils/daemon.js b/test/utils/daemon.js index 10982480..d3dbf12b 100644 --- a/test/utils/daemon.js +++ b/test/utils/daemon.js @@ -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)