diff options
Diffstat (limited to 'src/testing/testing.go')
| -rw-r--r-- | src/testing/testing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go index 8b4bfc31a8..a170cd0fd9 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -701,7 +701,7 @@ func tRunner(t *T, fn func(t *T)) { t.Errorf("race detected during execution of test") } - t.duration += time.Now().Sub(t.start) + t.duration += time.Since(t.start) // If the test panicked, print any test output before dying. err := recover() if !t.finished && err == nil { |
