fixup! refactor(container): restart handling
This commit is contained in:
parent
f8582ffa12
commit
f776a2fe16
@ -3,7 +3,6 @@ package container_test
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"testing"
|
||||
"time"
|
||||
@ -190,7 +189,6 @@ func TestClientRunContainerWithRestart(t *testing.T) {
|
||||
ContainerConfig: &dockercontainer.Config{Image: "alpine"},
|
||||
HostConfig: &dockercontainer.HostConfig{},
|
||||
ShouldRestart: func(_ int64, restartCount int, _ time.Duration) (bool, error) {
|
||||
fmt.Println("ShouldRestart", restartCount)
|
||||
if restartCount == 0 {
|
||||
return true, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user