From 42b51f5da58af5ad67bfe04ae5a24a695fce04f3 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 20:08:59 -0400 Subject: [PATCH] fix(test): Remove t.Parallel() from tests racing on injectedHTTPClient (#1630) Remove t.Parallel() from tests causing race condition on injectedHTTPClient Agent-Logs-Url: https://github.com/TwiN/gatus/sessions/bd8f2b87-d453-4653-a61d-4bf4dda4024b Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TwiN <15699766+TwiN@users.noreply.github.com> --- client/client_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index a6021c1c..5ed9d8cb 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -17,7 +17,6 @@ import ( ) func TestGetHTTPClient(t *testing.T) { - t.Parallel() cfg := &Config{ Insecure: false, IgnoreRedirect: false, @@ -318,7 +317,6 @@ func TestCanCreateConnection(t *testing.T) { // performs a Client Credentials OAuth2 flow and adds the obtained token as a `Authorization` // header to all outgoing HTTP calls. func TestHttpClientProvidesOAuth2BearerToken(t *testing.T) { - t.Parallel() defer InjectHTTPClient(nil) oAuth2Config := &OAuth2Config{ ClientID: "00000000-0000-0000-0000-000000000000",