diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index 4c2ff3d4878..a555cb4a156 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -110,6 +110,7 @@ func (t *T) Failed() bool { return t.failed } // FailNow marks the Test function as having failed and stops its execution. // Execution will continue at the next Test. func (t *T) FailNow() { + t.ns = time.Nanoseconds() - t.ns t.Fail() t.ch <- t runtime.Goexit()