Skip to content

Commit 0afdce2

Browse files
committed
Address lint issue
1 parent 27dcd40 commit 0afdce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/minikube/cluster/cluster_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,10 @@ func TestGuestClockDelta(t *testing.T) {
394394
if err != nil {
395395
t.Fatalf("guestClock: %v", err)
396396
}
397-
if got > time.Duration(time.Second*0) {
397+
if got > (0 * time.Second) {
398398
t.Errorf("unexpected positive delta (remote should be behind): %s", got)
399399
}
400-
if got < time.Duration(time.Second*-1) {
400+
if got < (-1 * time.Second) {
401401
t.Errorf("unexpectedly negative delta (remote too far behind): %s", got)
402402
}
403403
}

0 commit comments

Comments
 (0)