Skip to content

Commit

Permalink
minibus: relaxing assertion to work around non-deterministic results
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmac committed Nov 6, 2023
1 parent 779adcd commit 3acab9a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ public final void testSubsidyPControler() {
// Check final iteration
String actual = this.pStatsResults.get(2)[9];
// flaky (non-deterministic) test... allow multiple results
Assert.assertTrue("Number of budget (final iteration)",
List.of("174413625.6239444000", "174413625.7708889500", "174413625.7022777500").contains(actual));
Assert.assertEquals("Number of budget (final iteration)", 174413625.6, Double.parseDouble(actual), 1);
}

@Override
Expand Down

0 comments on commit 3acab9a

Please sign in to comment.