From 7c25d53fc0a597bca0cb73b2b1be90180f219789 Mon Sep 17 00:00:00 2001 From: Ruslan Shevchenko Date: Wed, 3 Apr 2024 16:23:57 +0300 Subject: [PATCH] fixed sporadic problem in logicJVM parOr test --- .../src/test/scala/cps/monads/logic/TestBasicLogicT.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/logic/jvm/src/test/scala/cps/monads/logic/TestBasicLogicT.scala b/logic/jvm/src/test/scala/cps/monads/logic/TestBasicLogicT.scala index 4849bf82..7f304781 100644 --- a/logic/jvm/src/test/scala/cps/monads/logic/TestBasicLogicT.scala +++ b/logic/jvm/src/test/scala/cps/monads/logic/TestBasicLogicT.scala @@ -61,8 +61,10 @@ class TestBasicLogicT { val firstN = Await.result(fFirstN, 1.second) println(s"firstN = ${firstN.toSeq}") assert(firstN.size == N) - assert(firstN.find(_ == 8).isDefined) - assert(firstN.find(_ == 7).isDefined) + // it shoudl be or prime or fib. Checking for both (prime and fib) is sporadically failed + // on github ci (maybe due to different hardware, which give different timing for prime and fib and we have 100 fib first) + // TODO: increase N and reenable checking both ? + assert(firstN.find(_ == 8).isDefined || firstN.find(_ == 7).isDefined) } @Test