mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
chore: terminate container on end
This is not relevant for this PR, as Ryuk is responsible for terminating containers after the test session finishes
This commit is contained in:
@@ -52,6 +52,11 @@ func mustStartMySQL(t testing.TB) *mysql.MySQLContainer {
|
||||
mysql.WithDatabase(mysqlDatabase),
|
||||
)
|
||||
require.NoError(t, err)
|
||||
t.Cleanup(func() {
|
||||
if c != nil {
|
||||
require.NoError(t, c.Terminate(ctx))
|
||||
}
|
||||
})
|
||||
|
||||
return c
|
||||
}
|
||||
|
Reference in New Issue
Block a user