Skip to content

Commit

Permalink
fixed sporadic problem in logicJVM parOr test
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed Apr 3, 2024
1 parent dae4980 commit 7c25d53
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c25d53

Please sign in to comment.