Skip to content

Commit

Permalink
correct error messages that changed slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer authored and mikemorris committed Nov 12, 2020
1 parent 76f1351 commit cdf73e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/consul/session_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down
2 changes: 1 addition & 1 deletion command/flags/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestConfigUtil_Values(t *testing.T) {
{
`{ "duration": "nope" }`,
"",
"invalid duration nope",
`invalid duration "nope"`,
},
{
`{ "string": 123 }`,
Expand Down

0 comments on commit cdf73e0

Please sign in to comment.