summaryrefslogtreecommitdiff
path: root/integration
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2023-04-08 19:30:33 +0200
committerSebastiaan van Stijn <github@gone.nl>2023-04-08 19:30:33 +0200
commit81e62af94ac59cf56aa6f988e04f5238e0f69ad1 (patch)
treebfebbdf0b74129c0e50145fde2de28dfba97370d /integration
parentdd3b71d17c614f837c4bba18baed9fa2cb31f1a4 (diff)
downloaddocker-81e62af94ac59cf56aa6f988e04f5238e0f69ad1.tar.gz
use consistent alias for containerd's errdefs package
The signatures of functions in containerd's errdefs packages are very similar to those in our own, and it's easy to accidentally use the wrong package. This patch uses a consistent alias for all occurrences of this import. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration')
-rw-r--r--integration/container/pause_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integration/container/pause_test.go b/integration/container/pause_test.go
index e34eeee337..1bd3b89d9d 100644
--- a/integration/container/pause_test.go
+++ b/integration/container/pause_test.go
@@ -6,7 +6,7 @@ import (
"testing"
"time"
- containerderrdefs "github.com/containerd/containerd/errdefs"
+ cerrdefs "github.com/containerd/containerd/errdefs"
"github.com/docker/docker/api/types"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
@@ -64,7 +64,7 @@ func TestPauseFailsOnWindowsServerContainers(t *testing.T) {
poll.WaitOn(t, container.IsInState(ctx, client, cID, "running"), poll.WithDelay(100*time.Millisecond))
err := client.ContainerPause(ctx, cID)
- assert.Check(t, is.ErrorContains(err, containerderrdefs.ErrNotImplemented.Error()))
+ assert.Check(t, is.ErrorContains(err, cerrdefs.ErrNotImplemented.Error()))
}
func TestPauseStopPausedContainer(t *testing.T) {