Skip to content

Commit

Permalink
test(monitor): update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Jun 27, 2024
1 parent e111b1b commit ecd4fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/config/env_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestReadAndAppendUptimeKumaURL(t *testing.T) {
true,
func(m *mocks.MockPP) {
m.EXPECT().Warningf(pp.EmojiUserError,
`The Uptime Kuma URL (redacted) contains an unexpected query %s=... and it will not be used`,
`The Uptime Kuma URL (redacted) contains an unexpected query %s=... and it will be ignored`,
"hello")
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/monitor/uptimekuma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestNewUptimeKuma(t *testing.T) {
"unexpected": {
"https://user:pass@host/path?random=", true,
func(m *mocks.MockPP) {
m.EXPECT().Warningf(pp.EmojiUserError, "The Uptime Kuma URL (redacted) contains an unexpected query %s=... and it will not be used", "random") //nolint:lll
m.EXPECT().Warningf(pp.EmojiUserError, "The Uptime Kuma URL (redacted) contains an unexpected query %s=... and it will be ignored", "random") //nolint:lll
},
},
"ill-formed-query": {
Expand Down

0 comments on commit ecd4fbc

Please sign in to comment.