-
Notifications
You must be signed in to change notification settings - Fork 4
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
integration: Remove dangling container and container names #19
Conversation
Thanks for the updates! I think we can use Also when we do |
I simplified the container startup and tear down by having There's a case where a dangling container name could exist from an operator that I handled. Consider the following:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, and good catch with removing the container as well as stopping it.
One more thing: The same function should be responsible for creating the resource and for cleaning it up. Looking back, we don't really need a TestMain, since all of the testing that relies on minio happens in a single test function. Let's move the setup code from TestMain into the top of TestIntegration, and delete TestMain entirely.
Sure, can do. |
Fixes a flaky minio error when running
go test -v ./...
in rapid succession due to a bucket already existing.