Skip to content

Commit

Permalink
ensure post-timeout failure makes it into the JUnit report
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed Oct 8, 2022
1 parent b541bcb commit cd395fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reporters/junit_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ func GenerateJUnitReport(report types.Report, dst string) error {
suite.Failures += 1
case types.SpecStateTimeout:
test.Failure = &JUnitFailure{
Message: "timeout",
Message: spec.Failure.Message,
Type: "timeout",
Description: interruptDescriptionForUnstructuredReporters(spec.Failure),
}
suite.Failures += 1
case types.SpecStateInterrupted:
test.Error = &JUnitError{
Message: "interrupted",
Message: spec.Failure.Message,
Type: "interrupted",
Description: interruptDescriptionForUnstructuredReporters(spec.Failure),
}
Expand Down

0 comments on commit cd395fc

Please sign in to comment.