Skip to content

Commit

Permalink
Fix error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jul 2, 2024
1 parent 51a85a3 commit 604fc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/testrunner/testrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (rc *ResultComposer) WithError(err error) ([]TestResult, error) {
return []TestResult{rc.TestResult}, nil
}

var tcf *ErrTestCaseFailed
var tcf ErrTestCaseFailed
if errors.As(err, &tcf) {
rc.FailureMsg += tcf.Reason
rc.FailureDetails += tcf.Details
Expand Down

0 comments on commit 604fc40

Please sign in to comment.