From 4f3296b416f7be5fb140ef344f4c56fc3acdaa41 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 2 Feb 2019 10:14:37 +0200 Subject: [PATCH] Fixed failing PingMedianTest --- .../plan/db/access/transactions/events/PingMedianTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/test/java/com/djrapitops/plan/db/access/transactions/events/PingMedianTest.java b/Plan/common/src/test/java/com/djrapitops/plan/db/access/transactions/events/PingMedianTest.java index 9e9b13101..40651281d 100644 --- a/Plan/common/src/test/java/com/djrapitops/plan/db/access/transactions/events/PingMedianTest.java +++ b/Plan/common/src/test/java/com/djrapitops/plan/db/access/transactions/events/PingMedianTest.java @@ -54,7 +54,7 @@ public class PingMedianTest { List 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);