Skip to content

Commit

Permalink
Merge pull request #2920 from matsim-org/fix-deploy-weekly-build
Browse files Browse the repository at this point in the history
minibus: relaxing assertion to work around non-deterministic results
  • Loading branch information
michalmac authored Nov 6, 2023
2 parents 779adcd + 3acab9a commit 42d83d5
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 42d83d5

Please sign in to comment.