We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the file main.go with contents:
main.go
package main import "os" func main() { os.Exit(1) }
and the file main_test.go with contents:
main_test.go
package main_test import ( "testing" "github.com/ionrock/procs" ) func TestIt(t *testing.T) { p := procs.NewProcess("echo 4 + 3 | go run main.go") if err := p.Start(); err != nil { t.Fatalf("running: %s", err.Error()) } if err := p.Wait(); err != nil { t.Fatalf("running: %s", err.Error()) } }
When I run the command:
go test -race ./main_test.go
I receive an error that there is a race condition.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the file
main.go
with contents:and the file
main_test.go
with contents:When I run the command:
go test -race ./main_test.go
I receive an error that there is a race condition.
The text was updated successfully, but these errors were encountered: