From 4393a499001836de85c23422309378262e5d5282 Mon Sep 17 00:00:00 2001 From: HongKuang <166261675+HongKuang@users.noreply.github.com> Date: Fri, 12 Apr 2024 09:18:30 +0800 Subject: [PATCH] chore: fix some typos (#725) Signed-off-by: hongkuang Co-authored-by: TwiN --- alerting/provider/mattermost/mattermost_test.go | 2 +- client/client_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alerting/provider/mattermost/mattermost_test.go b/alerting/provider/mattermost/mattermost_test.go index b543ce67..016ac406 100644 --- a/alerting/provider/mattermost/mattermost_test.go +++ b/alerting/provider/mattermost/mattermost_test.go @@ -46,7 +46,7 @@ func TestAlertProvider_IsValidWithOverride(t *testing.T) { }, } if providerWithInvalidOverrideWebHookUrl.IsValid() { - t.Error("provider WebHookURL shoudn't have been valid") + t.Error("provider WebHookURL shouldn't have been valid") } providerWithValidOverride := AlertProvider{ diff --git a/client/client_test.go b/client/client_test.go index 945dd785..10cc9ca4 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -277,7 +277,7 @@ func TestHttpClientProvidesOAuth2BearerToken(t *testing.T) { // to us as `X-Org-Authorization` header, we check here if the value matches // our expected token `secret-token` if response.Header.Get("X-Org-Authorization") != "Bearer secret-token" { - t.Error("exptected `secret-token` as Bearer token in the mocked response header `X-Org-Authorization`, but got", response.Header.Get("X-Org-Authorization")) + t.Error("expected `secret-token` as Bearer token in the mocked response header `X-Org-Authorization`, but got", response.Header.Get("X-Org-Authorization")) } }