Skip to content

Commit

Permalink
Merge pull request #204 from maxistua/fix-status-broken
Browse files Browse the repository at this point in the history
fix fatal when test has status broken
  • Loading branch information
fetinin authored Apr 17, 2023
2 parents b327d86 + 572d9a9 commit 177ce40
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions runner/runner_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,12 @@ func (h testingHandler) HandleTest(test models.TestInterface, executeTest testEx
result, err := executeTest(test)
if err != nil {
returnErr = err
t.Fatal(err)
}

if errors.Is(err, errTestSkipped) || errors.Is(err, errTestBroken) {
t.Skip()
if errors.Is(err, errTestSkipped) || errors.Is(err, errTestBroken) {
t.Skip()
} else {
t.Fatal(err)
}
}

if !result.Passed() {
Expand Down

0 comments on commit 177ce40

Please sign in to comment.