Skip to content

Commit 84015fd

Browse files
authored
chore: remove direct dependency on gotest.tools/v3 (#504)
1 parent d09b097 commit 84015fd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docker/types/filters/parse_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"errors"
88
"testing"
99

10-
"gotest.tools/v3/assert"
11-
is "gotest.tools/v3/assert/cmp"
10+
"github.com/stretchr/testify/assert"
11+
"github.com/stretchr/testify/require"
1212
)
1313

1414
func TestParseArgs(t *testing.T) {
@@ -25,10 +25,10 @@ func TestParseArgs(t *testing.T) {
2525

2626
for i := range flagArgs {
2727
args, err = ParseFlag(flagArgs[i], args)
28-
assert.NilError(t, err)
28+
require.NoError(t, err)
2929
}
30-
assert.Check(t, is.Len(args.Get("created"), 1))
31-
assert.Check(t, is.Len(args.Get("image.name"), 2))
30+
assert.Len(t, args.Get("created"), 1)
31+
assert.Len(t, args.Get("image.name"), 2)
3232
}
3333

3434
func TestParseArgsEdgeCase(t *testing.T) {
@@ -234,7 +234,7 @@ func TestArgsMatch(t *testing.T) {
234234
}
235235

236236
for args, field := range matches {
237-
assert.Check(t, args.Match(field, source),
237+
assert.Truef(t, args.Match(field, source),
238238
"Expected field %s to match %s", field, source)
239239
}
240240

@@ -258,7 +258,7 @@ func TestArgsMatch(t *testing.T) {
258258
}
259259

260260
for args, field := range differs {
261-
assert.Check(t, !args.Match(field, source), "Expected field %s to not match %s", field, source)
261+
assert.Falsef(t, args.Match(field, source), "Expected field %s to not match %s", field, source)
262262
}
263263
}
264264

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ require (
1818
github.com/sirupsen/logrus v1.9.3
1919
github.com/stretchr/testify v1.9.0
2020
golang.org/x/sys v0.21.0
21-
gotest.tools/v3 v3.5.1
2221
)
2322

2423
require (
@@ -39,4 +38,5 @@ require (
3938
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
4039
gopkg.in/yaml.v2 v2.4.0 // indirect
4140
gopkg.in/yaml.v3 v3.0.1 // indirect
41+
gotest.tools/v3 v3.5.1 // indirect
4242
)

0 commit comments

Comments
 (0)