mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-25 02:27:43 +01:00
Fixed failing PingMedianTest
This commit is contained in:
parent
48ec77c30e
commit
4f3296b416
@ -54,7 +54,7 @@ public class PingMedianTest {
|
|||||||
List<Integer> collect = testPing.stream().map(DateObj::getValue).sorted().collect(Collectors.toList());
|
List<Integer> collect = testPing.stream().map(DateObj::getValue).sorted().collect(Collectors.toList());
|
||||||
|
|
||||||
int expected = (int) Median.forList(collect).calculate();
|
int expected = (int) Median.forList(collect).calculate();
|
||||||
int result = new PingStoreTransaction(TestConstants.PLAYER_ONE_UUID, TestConstants.SERVER_UUID, new ArrayList<>())
|
int result = new PingStoreTransaction(TestConstants.PLAYER_ONE_UUID, TestConstants.SERVER_UUID, testPing)
|
||||||
.getMeanValue();
|
.getMeanValue();
|
||||||
|
|
||||||
assertEquals(expected, result);
|
assertEquals(expected, result);
|
||||||
|
Loading…
Reference in New Issue
Block a user