Remove testutil

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2018-03-06 14:03:47 -05:00
parent c969e1e0b3
commit 681c921528
76 changed files with 117 additions and 210 deletions

View File

@ -5,7 +5,6 @@ import (
"testing"
"github.com/docker/cli/cli/compose/types"
"github.com/docker/cli/internal/test/testutil"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
)
@ -45,7 +44,7 @@ func TestParseVolumeShortVolumes(t *testing.T) {
func TestParseVolumeMissingSource(t *testing.T) {
for _, spec := range []string{":foo", "/foo::ro"} {
_, err := ParseVolume(spec)
testutil.ErrorContains(t, err, "empty section between colons")
assert.ErrorContains(t, err, "empty section between colons")
}
}
@ -215,10 +214,10 @@ func TestParseVolumeSplitCases(t *testing.T) {
func TestParseVolumeInvalidEmptySpec(t *testing.T) {
_, err := ParseVolume("")
testutil.ErrorContains(t, err, "invalid empty volume spec")
assert.ErrorContains(t, err, "invalid empty volume spec")
}
func TestParseVolumeInvalidSections(t *testing.T) {
_, err := ParseVolume("/foo::rw")
testutil.ErrorContains(t, err, "invalid spec")
assert.ErrorContains(t, err, "invalid spec")
}