From 3c824e830cede1dfc7e1298084a393b2b6c1f3b7 Mon Sep 17 00:00:00 2001 From: Paul Scott Date: Mon, 27 Mar 2023 11:39:51 +1100 Subject: [PATCH] Made some test timeouts more generous --- tests/comp1110/ass2/ApplyMoveTest.java | 2 +- tests/comp1110/ass2/CalculateIslandLinksScoreTest.java | 2 +- tests/comp1110/ass2/CalculateScoresTest.java | 2 +- tests/comp1110/ass2/GenerateAIMoveTest.java | 2 +- tests/comp1110/ass2/IsMoveStringWellFormedTest.java | 2 +- tests/comp1110/ass2/IsStateStringWellFormedTest.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/comp1110/ass2/ApplyMoveTest.java b/tests/comp1110/ass2/ApplyMoveTest.java index 371f7f8..cd58d27 100644 --- a/tests/comp1110/ass2/ApplyMoveTest.java +++ b/tests/comp1110/ass2/ApplyMoveTest.java @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Timeout; import java.util.List; import java.util.concurrent.TimeUnit; -@Timeout(value = 2000, unit = TimeUnit.MILLISECONDS) +@Timeout(value = 2500, unit = TimeUnit.MILLISECONDS) public class ApplyMoveTest implements TestMapNamePlayerCount { private final GameDataLoader gameDataLoader = new GameDataLoader(); private static void testGame(List game){ diff --git a/tests/comp1110/ass2/CalculateIslandLinksScoreTest.java b/tests/comp1110/ass2/CalculateIslandLinksScoreTest.java index 8c104f7..51708ab 100644 --- a/tests/comp1110/ass2/CalculateIslandLinksScoreTest.java +++ b/tests/comp1110/ass2/CalculateIslandLinksScoreTest.java @@ -11,7 +11,7 @@ import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; -@Timeout(value = 2000, unit = TimeUnit.MILLISECONDS) +@Timeout(value = 2200, unit = TimeUnit.MILLISECONDS) public class CalculateIslandLinksScoreTest implements TestMapNamePlayerCount { private final GameDataLoader gameDataLoader = new GameDataLoader(); private final IslandLinksScoreDataLoader islandLinksScoreDataLoader = new IslandLinksScoreDataLoader(); diff --git a/tests/comp1110/ass2/CalculateScoresTest.java b/tests/comp1110/ass2/CalculateScoresTest.java index 9080470..061959c 100644 --- a/tests/comp1110/ass2/CalculateScoresTest.java +++ b/tests/comp1110/ass2/CalculateScoresTest.java @@ -11,7 +11,7 @@ import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; -@Timeout(value = 2000, unit = TimeUnit.MILLISECONDS) +@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS) public class CalculateScoresTest implements TestMapNamePlayerCount { private final GameDataLoader gameDataLoader = new GameDataLoader(); private final ScoreDataLoader scoreDataLoader = new ScoreDataLoader(); diff --git a/tests/comp1110/ass2/GenerateAIMoveTest.java b/tests/comp1110/ass2/GenerateAIMoveTest.java index 41e52de..b0f515a 100644 --- a/tests/comp1110/ass2/GenerateAIMoveTest.java +++ b/tests/comp1110/ass2/GenerateAIMoveTest.java @@ -11,7 +11,7 @@ import java.util.List; import java.util.Set; import java.util.concurrent.TimeUnit; -@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS) +@Timeout(value = 30000, unit = TimeUnit.MILLISECONDS) public class GenerateAIMoveTest implements TestMapNamePlayerCount { private final GameDataLoader gameDataLoader = new GameDataLoader(); private final AllValidMovesDataLoader loader = new AllValidMovesDataLoader(); diff --git a/tests/comp1110/ass2/IsMoveStringWellFormedTest.java b/tests/comp1110/ass2/IsMoveStringWellFormedTest.java index a2d9098..606b15d 100644 --- a/tests/comp1110/ass2/IsMoveStringWellFormedTest.java +++ b/tests/comp1110/ass2/IsMoveStringWellFormedTest.java @@ -8,7 +8,7 @@ import org.junit.jupiter.api.Timeout; import java.util.List; import java.util.concurrent.TimeUnit; -@Timeout(value = 1000, unit = TimeUnit.MILLISECONDS) +@Timeout(value = 1300, unit = TimeUnit.MILLISECONDS) public class IsMoveStringWellFormedTest { private final GameDataLoader gameDataLoader = new GameDataLoader(); private final List> allGames = gameDataLoader.fetchAllGames(); diff --git a/tests/comp1110/ass2/IsStateStringWellFormedTest.java b/tests/comp1110/ass2/IsStateStringWellFormedTest.java index 1cfa0af..452c6b9 100644 --- a/tests/comp1110/ass2/IsStateStringWellFormedTest.java +++ b/tests/comp1110/ass2/IsStateStringWellFormedTest.java @@ -8,7 +8,7 @@ import org.junit.jupiter.api.Timeout; import java.util.List; import java.util.concurrent.TimeUnit; -@Timeout(value = 1000, unit = TimeUnit.MILLISECONDS) +@Timeout(value = 2000, unit = TimeUnit.MILLISECONDS) public class IsStateStringWellFormedTest { private final GameDataLoader gameDataLoader = new GameDataLoader(); private final List> allGames = gameDataLoader.fetchAllGames();