Skip to content

fix: use negative deadline to ensure timeout in TestWebhook/timeout #14498

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 2 commits into from
Aug 30, 2024

Conversation

dannykopping
Copy link
Contributor

Closes #14060

I suspect two things:

  1. CI is not showing us panics on Windows for some reason, because
  2. The context was not being canceled which meant that serverFn was being called, yet it was nil which caused the panic

I replicated this on a Windows workspace

image

Setting a deadline 1h ago (instead of a timeout 1ns from now) seems to be more reliable.

Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping merged commit 9596f23 into main Aug 30, 2024
27 checks passed
@dannykopping dannykopping deleted the dk/webhook-flake branch August 30, 2024 14:46
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake: TestWebhook
2 participants