From aa0f3eb0ab8991135f47551b7744e09abc9e995c Mon Sep 17 00:00:00 2001 From: etorreborre Date: Tue, 7 Sep 2021 11:42:46 +0200 Subject: [PATCH] test: made the SpecificationStructureSpec more robust it seems that the cause for the instantiation exception is not stable --- .../specs2/specification/core/SpecificationStructureSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/test/scala/org/specs2/specification/core/SpecificationStructureSpec.scala b/tests/src/test/scala/org/specs2/specification/core/SpecificationStructureSpec.scala index 602aed85a7..0e11c12c01 100644 --- a/tests/src/test/scala/org/specs2/specification/core/SpecificationStructureSpec.scala +++ b/tests/src/test/scala/org/specs2/specification/core/SpecificationStructureSpec.scala @@ -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 =