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 586d14f3dcef1eb42bfb7da4c7af102ec6638668 (but with this test added) and 9b348465c6b69c0e402a226c795b1b23a76798af, and got 100/100 failures and 0/100 failures respectively.
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 586d14f3dcef1eb42bfb7da4c7af102ec6638668 (but with this test added) and 9b348465c6b69c0e402a226c795b1b23a76798af, and got 100/100 failures and 0/100 failures respectively.