Skip to content

Commit

Permalink
test: made the SpecificationStructureSpec more robust
Browse files Browse the repository at this point in the history
it seems that the cause for the instantiation exception is not stable
  • Loading branch information
symbiont-eric-torreborre committed Sep 7, 2021
1 parent 2a1242a commit aa0f3eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SpecificationStructureSpec(val env: Env) extends Specification with ScalaC

def report =
SpecificationStructure.create("org.specs2.specification.core.BrokenSpecification").runOperation must beLeft(
(t: Throwable) => t.getCause.getCause.getMessage === "boom"
(t: Throwable) => (t.getCause.getMessage === "boom") or (t.getCause.getCause.getMessage === "boom")
)

def companion =
Expand Down

0 comments on commit aa0f3eb

Please sign in to comment.