Skip to content

Commit 6e9c906

Browse files
authored
Merge pull request #9 from thaJeztah/remove_redundant_compare
TestOverlayTarUntar: remove redundant cmpopts.EquateEmpty
2 parents 486ec2a + 4b5d969 commit 6e9c906

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

archive_linux_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"syscall"
1111
"testing"
1212

13-
"github.com/google/go-cmp/cmp/cmpopts"
1413
"github.com/moby/sys/userns"
1514
"golang.org/x/sys/unix"
1615
"gotest.tools/v3/assert"
@@ -124,7 +123,7 @@ func TestOverlayTarUntar(t *testing.T) {
124123
}
125124
assert.NilError(t, err)
126125
assert.Check(t, is.Equal(h.Devmajor, int64(0)), "unexpected device file in archive")
127-
assert.Check(t, is.DeepEqual(h.PAXRecords, map[string]string(nil), cmpopts.EquateEmpty()))
126+
assert.Check(t, is.DeepEqual(h.PAXRecords, map[string]string(nil)))
128127
entries[h.Name] = struct{}{}
129128
}
130129

go.mod

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.23.0
55
require (
66
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6
77
github.com/containerd/log v0.1.0
8-
github.com/google/go-cmp v0.7.0
98
github.com/klauspost/compress v1.18.0
109
github.com/moby/patternmatcher v0.6.0
1110
github.com/moby/sys/mount v0.3.4
@@ -18,4 +17,7 @@ require (
1817
gotest.tools/v3 v3.5.2
1918
)
2019

21-
require github.com/sirupsen/logrus v1.9.3 // indirect
20+
require (
21+
github.com/google/go-cmp v0.7.0 // indirect
22+
github.com/sirupsen/logrus v1.9.3 // indirect
23+
)

0 commit comments

Comments
 (0)