Update test to tolerate durations in scientific notation (very short test durations) (#37041)

It's not valid to force integer values for `time`, so this is a case where the test needs to be updated and not the code under test.
pull/37042/head
Sarah French 9 months ago committed by GitHub
parent 49cabb5788
commit 5cc7479e0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3463,7 +3463,7 @@ func TestTest_JUnitOutput(t *testing.T) {
}
// actual output will include timestamps and test duration data, which isn't deterministic; redact it for comparison
timeRegexp := regexp.MustCompile(`time=\"[0-9\.]+\"`)
timeRegexp := regexp.MustCompile(`time="[^"]+"`)
actualOut = timeRegexp.ReplaceAll(actualOut, []byte("time=\"TIME_REDACTED\""))
timestampRegexp := regexp.MustCompile(`timestamp="[^"]+"`)
actualOut = timestampRegexp.ReplaceAll(actualOut, []byte("timestamp=\"TIMESTAMP_REDACTED\""))

Loading…
Cancel
Save