summaryrefslogtreecommitdiff
path: root/vendor/github.com/testcontainers/testcontainers-go/reaper.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-08 13:11:59 -0600
committermo khan <mo@mokhan.ca>2025-07-21 15:20:39 -0600
commit2ddcc34ca455973598f5693d64103deea41d8d79 (patch)
tree0b3a42aa97bca93c15c67a679c903611e5ab60c1 /vendor/github.com/testcontainers/testcontainers-go/reaper.go
parent16c27cd885b9c0d1241dfead3120643f0e8c556c (diff)
chore: use minit to start processes from Procfile
Diffstat (limited to 'vendor/github.com/testcontainers/testcontainers-go/reaper.go')
-rw-r--r--vendor/github.com/testcontainers/testcontainers-go/reaper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/testcontainers/testcontainers-go/reaper.go b/vendor/github.com/testcontainers/testcontainers-go/reaper.go
index 26cac14..4e46f0e 100644
--- a/vendor/github.com/testcontainers/testcontainers-go/reaper.go
+++ b/vendor/github.com/testcontainers/testcontainers-go/reaper.go
@@ -14,10 +14,10 @@ import (
"time"
"github.com/cenkalti/backoff/v4"
+ "github.com/containerd/errdefs"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
- "github.com/docker/docker/errdefs"
"github.com/docker/go-connections/nat"
"github.com/testcontainers/testcontainers-go/internal/config"
@@ -224,7 +224,7 @@ func (r *reaperSpawner) isRunning(ctx context.Context, ctr Container) error {
if !state.Running {
// Use NotFound error to indicate the container is not running
// and should be recreated.
- return errdefs.NotFound(fmt.Errorf("container state: %s", state.Status))
+ return errdefs.ErrNotFound.WithMessage("container state: " + state.Status)
}
return nil