Skip to content

Commit 832b05a

Browse files
committed
Update tests to use gotest.tools angel
Signed-off-by: Vincent Demeester <[email protected]>
1 parent 3830180 commit 832b05a

15 files changed

Lines changed: 21 additions & 21 deletions

File tree

cio/io_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import (
3232

3333
"github.com/containerd/fifo"
3434
"github.com/google/go-cmp/cmp/cmpopts"
35-
"github.com/gotestyourself/gotestyourself/assert"
36-
is "github.com/gotestyourself/gotestyourself/assert/cmp"
35+
"gotest.tools/assert"
36+
is "gotest.tools/assert/cmp"
3737
)
3838

3939
func assertHasPrefix(t *testing.T, s, prefix string) {

cio/io_unix_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"path/filepath"
2424
"testing"
2525

26-
"github.com/gotestyourself/gotestyourself/assert"
26+
"gotest.tools/assert"
2727
)
2828

2929
func TestOpenFifos(t *testing.T) {

content/helpers_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
"testing"
2626

2727
"github.com/containerd/containerd/errdefs"
28-
"github.com/gotestyourself/gotestyourself/assert"
29-
is "github.com/gotestyourself/gotestyourself/assert/cmp"
3028
"github.com/opencontainers/go-digest"
29+
"gotest.tools/assert"
30+
is "gotest.tools/assert/cmp"
3131
)
3232

3333
type copySource struct {

content/local/store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import (
3737
"github.com/containerd/containerd/content"
3838
"github.com/containerd/containerd/content/testsuite"
3939
"github.com/containerd/containerd/pkg/testutil"
40-
"github.com/gotestyourself/gotestyourself/assert"
4140
"github.com/opencontainers/go-digest"
4241
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
42+
"gotest.tools/assert"
4343
)
4444

4545
type memoryLabelStore struct {

content/testsuite/testsuite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ import (
3131

3232
"github.com/containerd/containerd/content"
3333
"github.com/containerd/containerd/pkg/testutil"
34-
"github.com/gotestyourself/gotestyourself/assert"
3534
digest "github.com/opencontainers/go-digest"
3635
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
3736
"github.com/pkg/errors"
37+
"gotest.tools/assert"
3838
)
3939

4040
// ContentSuite runs a test suite on the content store given a factory function.

gc/scheduler/scheduler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"time"
2424

2525
"github.com/containerd/containerd/gc"
26-
"github.com/gotestyourself/gotestyourself/assert"
26+
"gotest.tools/assert"
2727
)
2828

2929
func TestPauseThreshold(t *testing.T) {

images/oci/importer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ package oci
1919
import (
2020
"testing"
2121

22-
"github.com/gotestyourself/gotestyourself/assert"
2322
"github.com/opencontainers/go-digest"
2423
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
24+
"gotest.tools/assert"
2525
)
2626

2727
func TestNormalizeImageRef(t *testing.T) {

log/context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"testing"
2222

23-
"github.com/gotestyourself/gotestyourself/assert"
23+
"gotest.tools/assert"
2424
)
2525

2626
func TestLoggerContext(t *testing.T) {

mount/lookup_test/lookup_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636

3737
"github.com/containerd/containerd/mount"
3838
"github.com/containerd/containerd/pkg/testutil"
39-
"github.com/gotestyourself/gotestyourself/assert"
39+
"gotest.tools/assert"
4040
)
4141

4242
func checkLookup(t *testing.T, fsType, mntPoint, dir string) {

pkg/testutil/helpers_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"testing"
2525

2626
"github.com/containerd/containerd/mount"
27-
"github.com/gotestyourself/gotestyourself/assert"
27+
"gotest.tools/assert"
2828
)
2929

3030
// Unmount unmounts a given mountPoint and sets t.Error if it fails

0 commit comments

Comments
 (0)