Correct typos in api_test.go (#172)

This commit is contained in:
Felix Yan
2023-03-18 02:58:34 +08:00
committed by GitHub
parent a8acb5f63b
commit 34f3a118df

View File

@@ -142,7 +142,7 @@ func TestAPIError(t *testing.T) {
t.Fatalf("Unexpected API error code: %s", *apiErr.Code)
}
if apiErr.Error() == "" {
t.Fatal("Empty error message occured")
t.Fatal("Empty error message occurred")
}
}
@@ -168,7 +168,7 @@ func TestRequestError(t *testing.T) {
}
if reqErr.Unwrap() == nil {
t.Fatalf("Empty request error occured")
t.Fatalf("Empty request error occurred")
}
}