Fixing the client test

This commit is contained in:
Diptanu Choudhury 2016-05-11 16:58:14 -07:00
parent 347cb890d2
commit 5dc507dbe0
1 changed files with 2 additions and 0 deletions

View File

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