Update tests to use gotest.tools angel

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2018-06-08 21:02:01 +02:00
parent 3830180ce5
commit 832b05ae67
No known key found for this signature in database
GPG Key ID: 083CC6FD6EB699A3
15 changed files with 21 additions and 21 deletions

View File

@ -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) {

View File

@ -23,7 +23,7 @@ import (
"path/filepath"
"testing"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)
func TestOpenFifos(t *testing.T) {

View File

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

View File

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

View File

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

View File

@ -23,7 +23,7 @@ import (
"time"
"github.com/containerd/containerd/gc"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)
func TestPauseThreshold(t *testing.T) {

View File

@ -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) {

View File

@ -20,7 +20,7 @@ import (
"context"
"testing"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)
func TestLoggerContext(t *testing.T) {

View File

@ -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) {

View File

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

View File

@ -20,7 +20,7 @@ import (
"testing"
"github.com/containerd/containerd/reference"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)
func TestRepositoryScope(t *testing.T) {

View File

@ -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) {

View File

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

View File

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

View File

@ -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) {