replace time.Now().Sub with time.Since

This commit is contained in:
shinytang6
2019-03-18 23:57:26 +08:00
parent 66674f5496
commit 5c9f4d9dc6
14 changed files with 20 additions and 20 deletions

View File

@@ -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)
}
}