There was an error while loading. Please reload this page.
1 parent 6cb4d39 commit a3c5707Copy full SHA for a3c5707
1 file changed
tools/testrunner/log.go
@@ -374,10 +374,10 @@ func normalizedFailureLines(data string) []string {
374
func findLastAssertionFailureBlock(lines []string) (string, bool) {
375
var failLine string
376
for i, line := range slices.Backward(lines) {
377
- line := strings.TrimSpace(line)
378
- if failLine == "" && strings.HasPrefix(line, goTestFailLinePrefix) {
+ trimmed := strings.TrimSpace(line)
+ if failLine == "" && strings.HasPrefix(trimmed, goTestFailLinePrefix) {
379
// Keep the final Go test failure line because it carries the test duration.
380
- failLine = line
+ failLine = trimmed
381
continue
382
}
383
if !strings.Contains(line, "Error Trace:") {
0 commit comments