-
-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to #1357 therefore this change does not add leak detector, only fixes. Updates #321
- Loading branch information
1 parent
0766ef4
commit 7b4cf84
Showing
6 changed files
with
74 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters