Skip to content

Commit

Permalink
Test-fix: expect-error step also tests errorType and phase
Browse files Browse the repository at this point in the history
  • Loading branch information
arnefischereit committed Sep 30, 2022
1 parent 1018021 commit 1e35528
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,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 1e35528

Please sign in to comment.