Skip to content

Commit

Permalink
Make errorAccum test less sensitive to slow test runners
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Jul 2, 2023
1 parent e199cc1 commit 6e4c6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errorAccum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestErrorAccum(t *testing.T) {
AddError(err2)

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

}

Expand Down

0 comments on commit 6e4c6ca

Please sign in to comment.