Skip to content

Commit 96c8100

Browse files
author
Dmitry Voronov
committed
Another failing-on-corner-case test fixed
1 parent 9e72e3d commit 96c8100

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/scala/io/iohk/ethereum/network/PeerStatisticsSpec.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class PeerStatisticsSpec
4848

4949
val statA = stats.stats(alice)
5050
statA.responsesReceived shouldBe 2
51-
statA.lastSeenTimeMillis shouldBe >(statA.firstSeenTimeMillis)
51+
// @dv: the corner case when responses are received simultaneously
52+
// can ruin the tests for no reason
53+
statA.lastSeenTimeMillis shouldBe >=(statA.firstSeenTimeMillis)
5254

5355
val statB = stats.stats(bob)
5456
statB.responsesReceived shouldBe 1

0 commit comments

Comments
 (0)