enable server in test

This commit is contained in:
Alex Dadgar
2018-03-16 16:52:37 -07:00
parent 5924d39243
commit 7ba99a604d

View File

@@ -36,6 +36,7 @@ func TestAgent_ServerConfig(t *testing.T) {
t.Parallel()
conf := DefaultConfig()
conf.DevMode = true // allow localhost for advertise addrs
conf.Server.Enabled = true
a := &Agent{config: conf}
conf.AdvertiseAddrs.Serf = "127.0.0.1:4000"