Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix racy batch test #516

Merged
merged 3 commits into from
Apr 3, 2024
Merged

Fix racy batch test #516

merged 3 commits into from
Apr 3, 2024

Conversation

josh-berry
Copy link
Collaborator

This test occasionally fails because the batch job completes before the test has a chance to check its status. Allow for this case in the test.

This test occasionally fails because the batch job completes before the
test has a chance to check its status. Allow for this case in the test.
@josh-berry josh-berry requested review from stephanos and cretz April 2, 2024 00:43
@josh-berry
Copy link
Collaborator Author

hm... I'm realizing this is incomplete; the terminate test also has the same problem. It's less obvious how to fix that one, though, because success is indistinguishable from failure; if the batch job is already completed, it can't be terminated. (I'm seeing both failures on my Windows box pretty reliably.)

I think this one can still be merged as-is, but someone (maybe/probably me) will need to do a follow-up PR for the terminate test.

@josh-berry josh-berry merged commit 1442673 into cli-rewrite Apr 3, 2024
6 checks passed
@josh-berry josh-berry deleted the josh/fix-racy-batch-test branch April 3, 2024 16:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants