-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: fuzzing doesn't work with environment startup #52133
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
Comments
Seems like problem occurs because of testcontainers lib |
please fill out the issue template properly and include a self contained, reproducible example |
Added example with command, as I mentioned above it seems like testcontainers lib somehow affects fuzzing, because without it everything is fine |
Anything else needed? |
Fuzzing runs multiple subprocesses so it can catch crashes. Your use of testcontainers isn't compatible with that, the processes compete for shared global (OS) resources. |
But it seems okay if i start containers manually in docker, so it occurs because of some inner testcontainer work? |
In case others come across this, the solution is adding |
What version of Go are you using (
go version
)?go version go1.18 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
Running fuzz test with environment (containers with https://github.com/testcontainers/testcontainers-go and services in runtime) to test api routes
Command: go test -fuzz=FuzzFoo -tags fuzzing -test.fuzztime 3m ./fuzz_test.go
Starting without initializing environment produces correct output
What did you expect to see?
fuzz: elapsed: 0s, gathering baseline coverage: 1/1 completed, now fuzzing with 4 workers
What did you see instead?
The text was updated successfully, but these errors were encountered: