Skip to content

Commit

Permalink
Merge pull request #558 from arnefischereit/fix-error-test
Browse files Browse the repository at this point in the history
Test-fix: expect-error step also tests errorType and phase
  • Loading branch information
sherfert authored May 11, 2023
2 parents f3e26d0 + 1e35528 commit 171acd6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ case class Scenario(categories: List[String], featureName: String, number: Optio
ScenarioFailedException(
s"Wrong error type: expected $errorType, got ${error.errorType}",
error.exception.orNull))
if (error.phase != phase && error.phase != TCKErrorPhases.ANY_TIME && phase != TCKErrorPhases.ANY_TIME)
else if (error.phase != phase && error.phase != TCKErrorPhases.ANY_TIME && phase != TCKErrorPhases.ANY_TIME)
Left(
ScenarioFailedException(
s"Wrong error phase: expected $phase, got ${error.phase}",
error.exception.orNull))
if (error.detail != detail && error.detail != TCKErrorDetails.ANY && detail != TCKErrorDetails.ANY)
else if (error.detail != detail && error.detail != TCKErrorDetails.ANY && detail != TCKErrorDetails.ANY)
Left(
ScenarioFailedException(
s"Wrong error detail: expected $detail, got ${error.detail}",
Expand Down

0 comments on commit 171acd6

Please sign in to comment.