From 104854293a4bd025a550b9c3a4fcd33a4a950f24 Mon Sep 17 00:00:00 2001 From: Brian Bockelman Date: Sun, 11 Jun 2023 16:15:41 -0500 Subject: [PATCH] Make errorAccum test less sensitive to slow test runners --- errorAccum_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errorAccum_test.go b/errorAccum_test.go index 7612a16..7f461be 100644 --- a/errorAccum_test.go +++ b/errorAccum_test.go @@ -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) }