Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 1048542

Browse files
committed
Make errorAccum test less sensitive to slow test runners
1 parent 78f3891 commit 1048542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errorAccum_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestErrorAccum(t *testing.T) {
2121
AddError(err2)
2222

2323
errStr := GetErrors()
24-
assert.Equal(t, "Attempt #2: error2 (0s elapsed, 0s since start); Attempt #1: error1 (0s since start)", errStr)
24+
assert.Regexp(t, `Attempt\ \#2:\ error2\ \(0s\ elapsed,\ [0-9]+m?s\ since\ start\);\ Attempt\ \#1:\ error1\ \([0-9]+m?s\ since\ start\)`, errStr)
2525

2626
}
2727

0 commit comments

Comments
 (0)