Skip to content

test(codersdk/agentsdk): fix context cancel flush test #10560

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
Nov 7, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Nov 7, 2023

This change tests that the patch request is cancelled instead of hoping
that there's no race between context cancellations leading to patch
never being called.

Fixes: https://github.com/coder/coder/actions/runs/6784799441/job/18441830126?pr=10558

This change tests that the patch request is cancelled instead of hoping
that there's no race between context cancellations leading to patch
never being called.
@mafredri mafredri self-assigned this Nov 7, 2023
@mafredri mafredri requested a review from mtojek November 7, 2023 13:35
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

It is sequential, but I believe that you explored many options here.

@mafredri
Copy link
Member Author

mafredri commented Nov 7, 2023

It is sequential, but I believe that you explored many options here.

True, it was either this or removing the test entirely. 😅

@mafredri mafredri merged commit e36503a into main Nov 7, 2023
@mafredri mafredri deleted the mafredri/test-agentsdk-fix-logs-flush-context-test branch November 7, 2023 14:47
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2023
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.

2 participants