Fixed failing PingMedianTest

This commit is contained in:
Rsl1122 2019-02-02 10:14:37 +02:00
parent 48ec77c30e
commit 4f3296b416

View File

@ -54,7 +54,7 @@ public class PingMedianTest {
List<Integer> collect = testPing.stream().map(DateObj::getValue).sorted().collect(Collectors.toList());
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();
assertEquals(expected, result);