Change log line used for verification

This commit is contained in:
Freddy 2019-05-21 17:07:06 -06:00 committed by GitHub
parent d1c315fad9
commit e9259ca97a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}