From e9259ca97a07eabaa08efc118ed814f0b2d32809 Mon Sep 17 00:00:00 2001 From: Freddy Date: Tue, 21 May 2019 17:07:06 -0600 Subject: [PATCH] Change log line used for verification --- agent/agent_endpoint_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/agent_endpoint_test.go b/agent/agent_endpoint_test.go index 967147239f..25bff03187 100644 --- a/agent/agent_endpoint_test.go +++ b/agent/agent_endpoint_test.go @@ -4166,6 +4166,7 @@ func TestAgent_Monitor(t *testing.T) { Name: t.Name(), LogWriter: logWriter, LogOutput: io.MultiWriter(os.Stderr, logWriter), + HCL: `node_name = "invalid!"`, } a.Start(t) defer a.Shutdown() @@ -4201,7 +4202,7 @@ func TestAgent_Monitor(t *testing.T) { <-done got := resp.Body.Bytes() - want := []byte("raft: Initial configuration (index=1)") + want := []byte(`[WARN] agent: Node name "invalid!" will not be discoverable via DNS`) if !bytes.Contains(got, want) { r.Fatalf("got %q and did not find %q", got, want) }