Improving server test mode for faster testing

This commit is contained in:
lotodore
2011-02-11 12:59:42 +00:00
parent 6a2e993ac3
commit dd3c003d7e
2 changed files with 11 additions and 11 deletions
@@ -267,7 +267,7 @@ public class RunRankingGameTest extends TestBase {
assertTrue(gameEnd.after(gameStart));
// Do not consider daylight saving time, just calculate the raw difference.
long gameDurationMsec = gameEnd.getTime() - gameStart.getTime();
assertTrue(gameDurationMsec > 60 * 1000); // game duration should be larger than 1 minute.
assertTrue(gameDurationMsec > 10 * 1000); // game duration should be larger than 10 seconds.
assertTrue(gameDurationMsec < 60 * 60 * 1000); // game duration should be smaller than 1 hour.
// Check database entries for the players in the game.