Browse code

testutil: fix WithExperimental also setting "init"

Looks like this was overlooked in the review of the PR that added
this; e401b88e59e098745744917c555d549f08353e6d

There is a separate option for `WithInit`, so this option should not
automatically enable it when starting a daemon with experimental enabled.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/09/30 21:37:57
Showing 1 changed files
... ...
@@ -26,7 +26,6 @@ func WithTestLogger(t testing.TB) func(*Daemon) {
26 26
 // WithExperimental sets the daemon in experimental mode
27 27
 func WithExperimental(d *Daemon) {
28 28
 	d.experimental = true
29
-	d.init = true
30 29
 }
31 30
 
32 31
 // WithInit sets the daemon init