Skip to content
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

Add test for stdout scanner race with runner.Wait() #300

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

tomhjp
Copy link
Contributor

@tomhjp tomhjp commented Feb 12, 2024

Adds a test-case for #299 that reliably fails before the patch, and reliably passes after it.

I ran go test -count=100 -run ^TestClient_noStdoutScannerRace$ github.com/hashicorp/go-plugin on commits 586d14f (but with this test added) and 9b34846, and got 100/100 failures and 0/100 failures respectively.

Copy link
Contributor

@swenson swenson left a comment

Choose a reason for hiding this comment

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

LGTM

Love adding a good test.

@tomhjp
Copy link
Contributor Author

tomhjp commented Feb 12, 2024

Thanks!

@tomhjp tomhjp merged commit 8d2aaa4 into main Feb 12, 2024
1 check passed
@tomhjp tomhjp deleted the test-for-stdout-scanner-race branch February 12, 2024 19:19
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.

None yet

2 participants