File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,6 @@ linters:
111
111
disabled : true
112
112
- name : argument-limit
113
113
disabled : true
114
- - name : time-equal
115
- disabled : true
116
114
- name : defer
117
115
disabled : true
118
116
- name : early-return
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ func testDefaultNetworkCreation(t *testing.T) {
198
198
assert .NilError (t , err )
199
199
assert .Assert (t , len (files ) == 2 ) // files[0] is the entry for '.'
200
200
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 () ))
202
202
}
203
203
204
204
// Tests whether nerdctl properly creates the default network
@@ -297,7 +297,7 @@ func testDefaultNetworkCreationWithBridgeIP(t *testing.T) {
297
297
assert .NilError (t , err )
298
298
assert .Assert (t , len (files ) == 2 ) // files[0] is the entry for '.'
299
299
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 () ))
301
301
}
302
302
303
303
// Tests whether nerdctl skips the creation of the default network if a
You can’t perform that action at this time.
0 commit comments