replace time.Now().Sub with time.Since
This commit is contained in:
@@ -96,7 +96,7 @@ func TestWatchBasedManager(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("failed on %s: %v", name, err)
|
||||
}
|
||||
if d := time.Now().Sub(start); d > time.Second {
|
||||
if d := time.Since(start); d > time.Second {
|
||||
t.Logf("%s took %v", name, d)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user