fixup! refactor(container): restart handling

This commit is contained in:
Rob Watson 2025-04-13 09:53:09 +02:00
parent f8582ffa12
commit f776a2fe16

View File

@ -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
}