integration: Eventually, debug output, lint and format
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
committed by
Kristoffer Dalby
parent
3b16b75fe6
commit
9b962956b5
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/ory/dockertest/v3"
|
||||
)
|
||||
|
||||
const dockerExecuteTimeout = time.Second * 30
|
||||
const dockerExecuteTimeout = time.Second * 10
|
||||
|
||||
var (
|
||||
ErrDockertestCommandFailed = errors.New("dockertest command failed")
|
||||
|
||||
@@ -96,7 +96,7 @@ func CleanUnreferencedNetworks(pool *dockertest.Pool) error {
|
||||
}
|
||||
|
||||
for _, network := range networks {
|
||||
if network.Network.Containers == nil || len(network.Network.Containers) == 0 {
|
||||
if len(network.Network.Containers) == 0 {
|
||||
err := pool.RemoveNetwork(&network)
|
||||
if err != nil {
|
||||
log.Printf("removing network %s: %s", network.Network.Name, err)
|
||||
|
||||
Reference in New Issue
Block a user