Skip to content

Commit

Permalink
Update tests to use gotest.tools angel
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
  • Loading branch information
vdemeester committed Jun 8, 2018
1 parent 3830180 commit 832b05a
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions cio/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (

"github.com/containerd/fifo"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)

func assertHasPrefix(t *testing.T, s, prefix string) {
Expand Down
2 changes: 1 addition & 1 deletion cio/io_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"path/filepath"
"testing"

"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)

func TestOpenFifos(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions content/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"testing"

"github.com/containerd/containerd/errdefs"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/opencontainers/go-digest"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)

type copySource struct {
Expand Down
2 changes: 1 addition & 1 deletion content/local/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ import (
"github.com/containerd/containerd/content"
"github.com/containerd/containerd/content/testsuite"
"github.com/containerd/containerd/pkg/testutil"
"github.com/gotestyourself/gotestyourself/assert"
"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/assert"
)

type memoryLabelStore struct {
Expand Down
2 changes: 1 addition & 1 deletion content/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import (

"github.com/containerd/containerd/content"
"github.com/containerd/containerd/pkg/testutil"
"github.com/gotestyourself/gotestyourself/assert"
digest "github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"
"gotest.tools/assert"
)

// ContentSuite runs a test suite on the content store given a factory function.
Expand Down
2 changes: 1 addition & 1 deletion gc/scheduler/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"time"

"github.com/containerd/containerd/gc"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)

func TestPauseThreshold(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion images/oci/importer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package oci
import (
"testing"

"github.com/gotestyourself/gotestyourself/assert"
"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/assert"
)

func TestNormalizeImageRef(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion log/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"context"
"testing"

"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)

func TestLoggerContext(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion mount/lookup_test/lookup_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (

"github.com/containerd/containerd/mount"
"github.com/containerd/containerd/pkg/testutil"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)

func checkLookup(t *testing.T, fsType, mntPoint, dir string) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/helpers_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"

"github.com/containerd/containerd/mount"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)

// Unmount unmounts a given mountPoint and sets t.Error if it fails
Expand Down
2 changes: 1 addition & 1 deletion remotes/docker/scope_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"

"github.com/containerd/containerd/reference"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)

func TestRepositoryScope(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions services/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"context"
"testing"

"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)

func TestNewErrorsWithSamePathForRootAndState(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions snapshots/storage/metastore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/snapshots"
"github.com/google/go-cmp/cmp"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/pkg/errors"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)

type testFunc func(context.Context, *testing.T, *MetaStore)
Expand Down
4 changes: 2 additions & 2 deletions snapshots/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"github.com/containerd/containerd/pkg/testutil"
"github.com/containerd/containerd/snapshots"
"github.com/containerd/continuity/fs/fstest"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)

// SnapshotterSuite runs a test suite on the snapshotter given a factory function.
Expand Down
4 changes: 2 additions & 2 deletions sys/oom_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"testing"
"time"

"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)

func TestSetPositiveOomScoreAdjustment(t *testing.T) {
Expand Down

0 comments on commit 832b05a

Please sign in to comment.