Don't clobber the default consul config in tests

This commit is contained in:
Sean Chittenden 2016-06-01 03:09:53 -07:00
parent e2a561204a
commit a8d2af692c
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 0 additions and 2 deletions

View File

@ -16,7 +16,6 @@ import (
"github.com/hashicorp/nomad/nomad"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
sconfig "github.com/hashicorp/nomad/nomad/structs/config"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/hashstructure"
@ -72,7 +71,6 @@ func testServer(t *testing.T, cb func(*nomad.Config)) (*nomad.Server, string) {
func testClient(t *testing.T, cb func(c *config.Config)) *Client {
conf := config.DefaultConfig()
conf.DevMode = true
conf.ConsulConfig = &sconfig.ConsulConfig{}
if cb != nil {
cb(conf)
}