Fail implements testing.TB. Fail marks the function as having failed but continues execution.
()
| 153 | // Fail implements testing.TB. Fail marks the function as having failed but |
| 154 | // continues execution. |
| 155 | func (t *fakeT) Fail() { |
| 156 | t.T.Helper() |
| 157 | t.mu.Lock() |
| 158 | defer t.mu.Unlock() |
| 159 | t.failed = true |
| 160 | t.T.Log("testutil.RunRetry: t.Fail called in testutil.RunRetry closure") |
| 161 | } |
| 162 | |
| 163 | // FailNow implements testing.TB. FailNow marks the function as having failed |
| 164 | // and stops its execution by calling runtime.Goexit (which then runs all the |