Cleanup container if it's started but can't ping Postgres
This commit is contained in:
1 parent
645a068dab
commit
90a6a71f99
1 file changed
+1
-1
@@ -63,7 +63,7 @@ func startDbInDockerSupported(dialect string) (cleanup func() error, retURL, con
|
||||
defer db.Close()
|
||||
return nil
|
||||
}); err != nil {
|
||||
return func() error { return nil }, "", "", fmt.Errorf("could not ping postgres on startup: %w", err)
|
||||
return cleanup, "", "", fmt.Errorf("could not ping postgres on startup: %w", err)
|
||||
}
|
||||
|
||||
return cleanup, url, resource.Container.Name, nil
|
||||
|
||||
Reference in new issue
Block a user