From 572d9a94b896009d8f6c58002f67208990e095a3 Mon Sep 17 00:00:00 2001 From: Maksym Pavlov Date: Thu, 6 Apr 2023 00:21:04 +0300 Subject: [PATCH] fix fatal when test has status broken --- runner/runner_testing.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/runner/runner_testing.go b/runner/runner_testing.go index 4d7150c..8e7e693 100644 --- a/runner/runner_testing.go +++ b/runner/runner_testing.go @@ -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() {