mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-10 07:58:32 +01:00
Terminate mysql container
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
parent
60c50bf93b
commit
6cccc97aea
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user