mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 12:07:35 +01:00
Fixed broken test
This commit is contained in:
parent
a43c9500a4
commit
78888ff26d
@ -72,7 +72,7 @@ public interface ActivityIndexQueriesTest extends DatabaseTestPreparer {
|
||||
// assertEquals(expected, groupings);
|
||||
// }
|
||||
|
||||
@RepeatedTest(3)
|
||||
@RepeatedTest(value = 3, name = "Activity Index calculations match {currentRepetition}/{totalRepetitions}")
|
||||
default void activityIndexCalculationsMatch() {
|
||||
storeSessions(session -> true);
|
||||
|
||||
@ -118,7 +118,7 @@ public interface ActivityIndexQueriesTest extends DatabaseTestPreparer {
|
||||
});
|
||||
}
|
||||
|
||||
@RepeatedTest(3)
|
||||
@RepeatedTest(value = 3, name = "Activity Index calculations match with missing data {currentRepetition}/{totalRepetitions}")
|
||||
default void activityIndexCalculationsMatchWithMissingData() {
|
||||
long keepAfter = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(7L);
|
||||
storeSessions(session -> session.getDate() >= keepAfter && session.getUnsafe(SessionKeys.END) >= keepAfter);
|
||||
@ -165,7 +165,7 @@ public interface ActivityIndexQueriesTest extends DatabaseTestPreparer {
|
||||
});
|
||||
}
|
||||
|
||||
@RepeatedTest(3)
|
||||
@RepeatedTest(value = 3, name = "Network Activity Index calculations match {currentRepetition}/{totalRepetitions}")
|
||||
default void networkActivityIndexCalculationsMatch() {
|
||||
storeSessions(session -> true);
|
||||
|
||||
|
@ -265,7 +265,7 @@ public interface SessionQueriesTest extends DatabaseTestPreparer {
|
||||
assertEquals(new HashSet<>(Arrays.asList(expected)), result);
|
||||
}
|
||||
|
||||
@RepeatedTest(3)
|
||||
@RepeatedTest(value = 3, name = "Players table and Player page playtimes match {currentRepetition}/{totalRepetitions}")
|
||||
default void playersTableAndPlayerPagePlaytimeMatches() {
|
||||
prepareForSessionSave();
|
||||
List<Session> player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID);
|
||||
@ -285,7 +285,7 @@ public interface SessionQueriesTest extends DatabaseTestPreparer {
|
||||
assertEquals(expected, got);
|
||||
}
|
||||
|
||||
@RepeatedTest(3)
|
||||
@RepeatedTest(value = 3, name = "Players table and player page Activity Index calculations match {currentRepetition}/{totalRepetitions}")
|
||||
default void playersTableAndPlayerPageActivityIndexMatches() {
|
||||
prepareForSessionSave();
|
||||
List<Session> player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID);
|
||||
|
@ -109,8 +109,8 @@ class ComparatorTest {
|
||||
.collect(Collectors.toList());
|
||||
|
||||
List<Lang> expected = Arrays.asList(
|
||||
HelpLang.SERVER,
|
||||
HelpLang.DB_RESTORE,
|
||||
HelpLang.SERVER,
|
||||
HelpLang.SERVERS
|
||||
);
|
||||
assertEquals(expected, result);
|
||||
|
Loading…
Reference in New Issue
Block a user