From cdf73e0e5b120b9a5966bc5c23e4901b9999a59e Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Wed, 28 Oct 2020 12:03:00 -0500 Subject: [PATCH] correct error messages that changed slightly --- agent/consul/session_endpoint_test.go | 2 +- command/flags/config_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/consul/session_endpoint_test.go b/agent/consul/session_endpoint_test.go index e8984f44b550..dc0071563153 100644 --- a/agent/consul/session_endpoint_test.go +++ b/agent/consul/session_endpoint_test.go @@ -925,7 +925,7 @@ func TestSession_Apply_BadTTL(t *testing.T) { if err == nil { t.Fatal("expected error") } - if err.Error() != "Session TTL '10z' invalid: time: unknown unit z in duration 10z" { + if err.Error() != `Session TTL '10z' invalid: time: unknown unit "z" in duration "10z"` { t.Fatalf("incorrect error message: %s", err.Error()) } diff --git a/command/flags/config_test.go b/command/flags/config_test.go index 7954fa6684a2..209b416e4a40 100644 --- a/command/flags/config_test.go +++ b/command/flags/config_test.go @@ -44,7 +44,7 @@ func TestConfigUtil_Values(t *testing.T) { { `{ "duration": "nope" }`, "", - "invalid duration nope", + `invalid duration "nope"`, }, { `{ "string": 123 }`,