From ad6811d45fca7fda43e0efcb10dded8d4ab115bd Mon Sep 17 00:00:00 2001 From: Mads Boddum Date: Sun, 25 Feb 2018 04:35:59 +0100 Subject: [PATCH] Fixed expected rank updates being an hour off --- .../holocore/services/faction/TestCivilWarService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/projectswg/holocore/services/faction/TestCivilWarService.java b/src/test/java/com/projectswg/holocore/services/faction/TestCivilWarService.java index 477f42e48..b3b1d60f2 100644 --- a/src/test/java/com/projectswg/holocore/services/faction/TestCivilWarService.java +++ b/src/test/java/com/projectswg/holocore/services/faction/TestCivilWarService.java @@ -77,8 +77,8 @@ public class TestCivilWarService { LocalDate now = LocalDate.of(2018, 2, 19); // It's a Monday LocalDate rankDay = LocalDate.of(2018, 2, 23); // It's a Friday, the exact time we rank up LocalDate dayAfter = LocalDate.of(2018, 2, 24); // It's a Saturday, 24 hours after rank up - int nowRankTime = 1519344000; // The Friday that week, at 00:00 UTC (night between thursday and friday) - int nextRankTime = 1519948800; // Friday the week after, at 00:00 UTC (night between thursday and friday) + int nowRankTime = 1519340400; // The Friday that week, at 00:00 UTC (night between thursday and friday) + int nextRankTime = 1519945200; // Friday the week after, at 00:00 UTC (night between thursday and friday) Assert.assertEquals(nowRankTime, service.nextUpdateTime(now)); Assert.assertEquals(nextRankTime, service.nextUpdateTime(rankDay)); // When we hit the scheduled rank time, the next update should be in a week