Skip to content

Revert "Test-only tech-debt cleanup: Make TestCtx use stdlib testing.Context() instead of a DIY version" #7672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025

Conversation

bbrks
Copy link
Member

@bbrks bbrks commented Aug 7, 2025

Reverts #7669

Had unintended side-effects on topology tests which used this context in a way that observed cancellation inside Cleanup() code.

Wasn't caught until merge because topology tests don't run in PRs.

Will revisit after 4.0

@Copilot Copilot AI review requested due to automatic review settings August 7, 2025 18:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts a previous change that made TestCtx use the standard library's testing.Context() instead of a custom implementation. The revert was necessary because the original change caused unintended side-effects in topology tests that relied on observing cancellation behavior within cleanup code.

  • Reverts TestCtx function to use a custom context implementation with manual cancellation
  • Restores the previous behavior where context cancellation is handled via t.Cleanup(cancelCtx)

@bbrks bbrks merged commit 14b0b7e into main Aug 7, 2025
27 checks passed
@bbrks bbrks deleted the revert-7669-use_new_go_test_context_as_parent branch August 7, 2025 20:46
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