Skip to content

Commit

Permalink
Increase tolerance in testEquateDistributionConsistentHashing test
Browse files Browse the repository at this point in the history
While in the test Random with seed 0 is used,
NodeSelector#computeAssignments it not deterministic itself.
Therefore, test tolerance needs to be increased to prevent
intermmitent failures.
  • Loading branch information
sopel39 committed Jun 9, 2020
1 parent 4c51ac3 commit 6238d6d
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,17 +618,17 @@ public static Object[][] equateDistributionTestParameters()
{
return new Object[][] {
{5, 10, 0.00},
{5, 20, 0.05},
{5, 20, 0.055},
{10, 50, 0.00},
{10, 100, 0.04},
{10, 200, 0.085},
{50, 550, 0.040},
{50, 600, 0.042},
{50, 700, 0.040},
{100, 550, 0.031},
{100, 600, 0.049},
{100, 1000, 0.034},
{100, 1500, 0.04}};
{10, 100, 0.045},
{10, 200, 0.090},
{50, 550, 0.045},
{50, 600, 0.047},
{50, 700, 0.045},
{100, 550, 0.036},
{100, 600, 0.054},
{100, 1000, 0.039},
{100, 1500, 0.045}};
}

@Test(dataProvider = "equateDistributionTestParameters")
Expand Down

0 comments on commit 6238d6d

Please sign in to comment.