Skip to content

Commit 4e3f637

Browse files
committed
Lint: revive time-equal
Signed-off-by: apostasie <[email protected]>
1 parent 39d5ef2 commit 4e3f637

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ linters:
111111
disabled: true
112112
- name: argument-limit
113113
disabled: true
114-
- name: time-equal
115-
disabled: true
116114
- name: defer
117115
disabled: true
118116
- name: early-return

pkg/netutil/netutil_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func testDefaultNetworkCreation(t *testing.T) {
198198
assert.NilError(t, err)
199199
assert.Assert(t, len(files) == 2) // files[0] is the entry for '.'
200200
assert.Assert(t, filepath.Join(cniConfTestDir, files[1].Name()) == defaultNetConf.File)
201-
assert.Assert(t, firstConfigModTime == files[1].ModTime())
201+
assert.Assert(t, firstConfigModTime.Equal(files[1].ModTime()))
202202
}
203203

204204
// Tests whether nerdctl properly creates the default network
@@ -297,7 +297,7 @@ func testDefaultNetworkCreationWithBridgeIP(t *testing.T) {
297297
assert.NilError(t, err)
298298
assert.Assert(t, len(files) == 2) // files[0] is the entry for '.'
299299
assert.Assert(t, filepath.Join(cniConfTestDir, files[1].Name()) == defaultNetConf.File)
300-
assert.Assert(t, firstConfigModTime == files[1].ModTime())
300+
assert.Assert(t, firstConfigModTime.Equal(files[1].ModTime()))
301301
}
302302

303303
// Tests whether nerdctl skips the creation of the default network if a

0 commit comments

Comments
 (0)