Update tests to use gotest.tools 👼

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 38457285242e57306c5b7ee652c7ccbb9fbd6713
Component: engine
This commit is contained in:
Vincent Demeester
2018-06-13 09:04:30 +02:00
parent 9b920fd3e1
commit 4cadaa03f8
262 changed files with 517 additions and 518 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/docker/docker/pkg/idtools"
"github.com/docker/docker/pkg/mount"
"github.com/gotestyourself/gotestyourself/skip"
"gotest.tools/skip"
)
func TestGetAddress(t *testing.T) {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"time"
"github.com/boltdb/bolt"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestSetGetMeta(t *testing.T) {
@@ -10,7 +10,7 @@ import (
volumedrivers "github.com/docker/docker/volume/drivers"
"github.com/docker/docker/volume/service/opts"
volumetestutils "github.com/docker/docker/volume/testutils"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)
func TestRestore(t *testing.T) {
@@ -13,8 +13,8 @@ import (
"github.com/docker/docker/volume/local"
"github.com/docker/docker/volume/service/opts"
"github.com/docker/docker/volume/testutils"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestLocalVolumeSize(t *testing.T) {
@@ -12,8 +12,8 @@ import (
volumedrivers "github.com/docker/docker/volume/drivers"
"github.com/docker/docker/volume/service/opts"
"github.com/docker/docker/volume/testutils"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestServiceCreate(t *testing.T) {
@@ -15,8 +15,8 @@ import (
"github.com/docker/docker/volume/service/opts"
volumetestutils "github.com/docker/docker/volume/testutils"
"github.com/google/go-cmp/cmp"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestCreate(t *testing.T) {