testutil: fix WithExperimental also setting "init"

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

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>
This commit is contained in:
Sebastiaan van Stijn 2019-09-30 14:37:57 +02:00
parent 5b57f41241
commit 5aebd69857
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -26,7 +26,6 @@ func WithTestLogger(t testing.TB) func(*Daemon) {
// WithExperimental sets the daemon in experimental mode
func WithExperimental(d *Daemon) {
d.experimental = true
d.init = true
}
// WithInit sets the daemon init