Skip to content

test(agent/agentssh): fix macos signal flake during close #17313

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
Apr 9, 2025

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Apr 9, 2025

I haven't been able to verify this fix, but I'm hoping this'll do it.

Fixes coder/internal#558

I haven't been able to verify this fix, but I'm hoping this'll do it.

Fixes coder/internal#558
@mafredri mafredri self-assigned this Apr 9, 2025
pty.ExpectMatchContext(ctx, "started")
// Sleep a bit to ensure the sleep has started.
time.Sleep(testutil.IntervalMedium)
Copy link
Member

Choose a reason for hiding this comment

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

nit: maybe we should only sleep on runtime.GOOS == "darwin"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I kind of agree, but also worry about this being a very hard to trigger edge case on other OS's as well :/.

@mafredri mafredri merged commit 98c05b3 into main Apr 9, 2025
36 checks passed
@mafredri mafredri deleted the mafredri/test-fix-agentssh-flake2 branch April 9, 2025 17:28
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2025
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: TestNewServer_CloseActiveConnections/Shutdown
2 participants