Skip to content

fix(test): Remove t.Parallel() from tests racing on injectedHTTPClient#1630

Merged
TwiN merged 1 commit into
masterfrom
copilot/remove-tparallel-calls
Apr 19, 2026
Merged

fix(test): Remove t.Parallel() from tests racing on injectedHTTPClient#1630
TwiN merged 1 commit into
masterfrom
copilot/remove-tparallel-calls

Conversation

Copilot AI commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

TestGetHTTPClient and TestHttpClientProvidesOAuth2BearerToken both call t.Parallel() while concurrently reading/writing the package-level injectedHTTPClient global, triggering the -race detector and causing cascading test failures.

Changes

  • client/client_test.go: Remove t.Parallel() from TestGetHTTPClient and TestHttpClientProvidesOAuth2BearerToken — these tests mutate a shared global and must not run concurrently.

@TwiN TwiN changed the title Remove t.Parallel() from tests racing on injectedHTTPClient fix(test): Remove t.Parallel() from tests racing on injectedHTTPClient Apr 19, 2026
@TwiN TwiN marked this pull request as ready for review April 19, 2026 00:03
@TwiN TwiN merged commit 42b51f5 into master Apr 19, 2026
3 checks passed
@TwiN TwiN deleted the copilot/remove-tparallel-calls branch April 19, 2026 00:09
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request May 20, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/twin/gatus](https://github.com/TwiN/gatus) | minor | `v5.35.0` → `v5.36.0` |

---

### Release Notes

<details>
<summary>TwiN/gatus (ghcr.io/twin/gatus)</summary>

### [`v5.36.0`](https://github.com/TwiN/gatus/releases/tag/v5.36.0)

[Compare Source](TwiN/gatus@v5.35.0...v5.36.0)

##### What's Changed

- perf: Add PostgreSQL indexes for \~15x performance improvement by [@&#8203;ozanonurtek](https://github.com/ozanonurtek) in [#&#8203;1541](TwiN/gatus#1541)
- fix(alerting): Remove square brackets from email subject by [@&#8203;jaydeethree](https://github.com/jaydeethree) in [#&#8203;1586](TwiN/gatus#1586)
- fix(security): Do not allow invalid security configs by [@&#8203;PythonGermany](https://github.com/PythonGermany) in [#&#8203;1531](TwiN/gatus#1531)
- fix: return error from rdapQuery when no expiration event found by [@&#8203;majiayu000](https://github.com/majiayu000) in [#&#8203;1603](TwiN/gatus#1603)
- fix(ci): regenerate-static-assets workflow reporting false errors on success by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1614](TwiN/gatus#1614)
- feat(ui): Add customizable OIDC login screen branding by [@&#8203;hluaces](https://github.com/hluaces) in [#&#8203;1583](TwiN/gatus#1583)
- fix(test): Remove t.Parallel() from tests racing on injectedHTTPClient by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1630](TwiN/gatus#1630)
- fix(storage): close rows before nested queries to prevent PostgreSQL driver error by [@&#8203;osalloum](https://github.com/osalloum) in [#&#8203;1503](TwiN/gatus#1503)
- docs: Document remote.client configuration by [@&#8203;surdaft](https://github.com/surdaft) in [#&#8203;1637](TwiN/gatus#1637)
- fix: update lib/pq to v1.11.2 to fix Supabase PostgreSQL connection regression by [@&#8203;wahajahmed010](https://github.com/wahajahmed010) in [#&#8203;1644](TwiN/gatus#1644)

##### New Contributors

- [@&#8203;ozanonurtek](https://github.com/ozanonurtek) made their first contribution in [#&#8203;1541](TwiN/gatus#1541)
- [@&#8203;jaydeethree](https://github.com/jaydeethree) made their first contribution in [#&#8203;1586](TwiN/gatus#1586)
- [@&#8203;majiayu000](https://github.com/majiayu000) made their first contribution in [#&#8203;1603](TwiN/gatus#1603)
- [@&#8203;hluaces](https://github.com/hluaces) made their first contribution in [#&#8203;1583](TwiN/gatus#1583)
- [@&#8203;osalloum](https://github.com/osalloum) made their first contribution in [#&#8203;1503](TwiN/gatus#1503)
- [@&#8203;surdaft](https://github.com/surdaft) made their first contribution in [#&#8203;1637](TwiN/gatus#1637)
- [@&#8203;wahajahmed010](https://github.com/wahajahmed010) made their first contribution in [#&#8203;1644](TwiN/gatus#1644)

**Full Changelog**: <TwiN/gatus@v5.35.0...v5.36.0>

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/New_York)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xODIuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE4Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL21pbm9yIl19-->

Reviewed-on: https://git.greyrock.io/greyrock-labs/home-ops/pulls/82
eleboucher pushed a commit to eleboucher/homelab that referenced this pull request May 20, 2026
…(#577)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/twin/gatus](https://github.com/TwiN/gatus) | minor | `v5.35.0` → `v5.36.0` |

---

### Release Notes

<details>
<summary>TwiN/gatus (ghcr.io/twin/gatus)</summary>

### [`v5.36.0`](https://github.com/TwiN/gatus/releases/tag/v5.36.0)

[Compare Source](TwiN/gatus@v5.35.0...v5.36.0)

##### What's Changed

- perf: Add PostgreSQL indexes for \~15x performance improvement by [@&#8203;ozanonurtek](https://github.com/ozanonurtek) in [#&#8203;1541](TwiN/gatus#1541)
- fix(alerting): Remove square brackets from email subject by [@&#8203;jaydeethree](https://github.com/jaydeethree) in [#&#8203;1586](TwiN/gatus#1586)
- fix(security): Do not allow invalid security configs by [@&#8203;PythonGermany](https://github.com/PythonGermany) in [#&#8203;1531](TwiN/gatus#1531)
- fix: return error from rdapQuery when no expiration event found by [@&#8203;majiayu000](https://github.com/majiayu000) in [#&#8203;1603](TwiN/gatus#1603)
- fix(ci): regenerate-static-assets workflow reporting false errors on success by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1614](TwiN/gatus#1614)
- feat(ui): Add customizable OIDC login screen branding by [@&#8203;hluaces](https://github.com/hluaces) in [#&#8203;1583](TwiN/gatus#1583)
- fix(test): Remove t.Parallel() from tests racing on injectedHTTPClient by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1630](TwiN/gatus#1630)
- fix(storage): close rows before nested queries to prevent PostgreSQL driver error by [@&#8203;osalloum](https://github.com/osalloum) in [#&#8203;1503](TwiN/gatus#1503)
- docs: Document remote.client configuration by [@&#8203;surdaft](https://github.com/surdaft) in [#&#8203;1637](TwiN/gatus#1637)
- fix: update lib/pq to v1.11.2 to fix Supabase PostgreSQL connection regression by [@&#8203;wahajahmed010](https://github.com/wahajahmed010) in [#&#8203;1644](TwiN/gatus#1644)

##### New Contributors

- [@&#8203;ozanonurtek](https://github.com/ozanonurtek) made their first contribution in [#&#8203;1541](TwiN/gatus#1541)
- [@&#8203;jaydeethree](https://github.com/jaydeethree) made their first contribution in [#&#8203;1586](TwiN/gatus#1586)
- [@&#8203;majiayu000](https://github.com/majiayu000) made their first contribution in [#&#8203;1603](TwiN/gatus#1603)
- [@&#8203;hluaces](https://github.com/hluaces) made their first contribution in [#&#8203;1583](TwiN/gatus#1583)
- [@&#8203;osalloum](https://github.com/osalloum) made their first contribution in [#&#8203;1503](TwiN/gatus#1503)
- [@&#8203;surdaft](https://github.com/surdaft) made their first contribution in [#&#8203;1637](TwiN/gatus#1637)
- [@&#8203;wahajahmed010](https://github.com/wahajahmed010) made their first contribution in [#&#8203;1644](TwiN/gatus#1644)

**Full Changelog**: <TwiN/gatus@v5.35.0...v5.36.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL21pbm9yIl19-->

Reviewed-on: https://git.erwanleboucher.dev/eleboucher/homelab/pulls/577
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants