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

fixes #192 - guard access to reaper with a mutex #198

Merged
merged 1 commit into from
May 24, 2020
Merged

fixes #192 - guard access to reaper with a mutex #198

merged 1 commit into from
May 24, 2020

Conversation

dvulpe
Copy link
Contributor

@dvulpe dvulpe commented May 14, 2020

Fixes #192 by guarding access to shared reaper with a mutex making it thread safe.

@gianarb
Copy link
Collaborator

gianarb commented May 15, 2020

Hello @dvulpe! Thank you for your contribution! I am looking at why Travis failed and I will look at the code shortly

@gianarb gianarb merged commit 50c8baf into testcontainers:master May 24, 2020
@dvulpe dvulpe deleted the fix_192 branch May 24, 2020 18:42
@dvulpe
Copy link
Contributor Author

dvulpe commented May 25, 2020

thank you!

gianarb pushed a commit that referenced this pull request Jun 9, 2020
master is red and the cause looks like a flaky test introduced by #198.
I can't point the flakyness to code itself. And there are not race
detected running `go test --race`.

I spot that we are using a different image
`localstack/localstack:latest` for that test. it is also very big 500mb.

I changed it with nginx to keep consistency.
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.

Reaper doesn't appear to be thread safe
2 participants