Terminate mysql container

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga 2025-01-03 15:49:59 +03:00
parent 60c50bf93b
commit 6cccc97aea
No known key found for this signature in database
GPG Key ID: 511EED5C928AD547

View File

@ -34,8 +34,7 @@ func CreateMysqlTestContainer() (func(), error) {
} }
cleanUp := func() { cleanUp := func() {
timeout := 1 * time.Second if err = container.Terminate(ctx); err != nil {
if err = container.Stop(ctx, &timeout); err != nil {
log.WithContext(ctx).Warnf("failed to stop container: %s", err) log.WithContext(ctx).Warnf("failed to stop container: %s", err)
} }
} }