Skip to content

Commit 406af1f

Browse files
committed
use same error message and add missing args
1 parent 0213fa4 commit 406af1f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

assert/assertions.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,11 +2049,12 @@ func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick t
20492049
case v := <-resultCh:
20502050
switch v {
20512051
case failed:
2052-
// Conditon pannicked or test failed and finished.
2052+
// Condition panicked or test failed and finished.
20532053
// Cannot determine correct result.
2054-
// Cannot decide if we should continue or not.
2054+
// Cannot decide if we should continue gracefully or not.
20552055
// Stop here and now, and mark test as failed.
2056-
return Fail(t, "Condition aborted")
2056+
// Use the same message as timeout to ensure compatibility with older versions.
2057+
return Fail(t, "Condition never satisfied", msgAndArgs...)
20572058
case stop:
20582059
return true
20592060
case noStop:

0 commit comments

Comments
 (0)