mirror of
https://github.com/TwiN/gatus.git
synced 2026-05-12 19:31:28 +00:00
Add sync.RWMutex to protect concurrent read/write access to the package-level injectedHTTPClient variable, which was causing flaky test failures when TestGetHTTPClient and TestHttpClientProvidesOAuth2BearerToken ran in parallel with -race. Agent-Logs-Url: https://github.com/TwiN/gatus/sessions/5eccf19f-b033-4bf0-9d3b-4e462e7e89c4 Co-authored-by: TwiN <15699766+TwiN@users.noreply.github.com>