Made some test timeouts more generous

This commit is contained in:
Paul Scott 2023-03-27 11:39:51 +11:00
parent b631dc0ceb
commit 3c824e830c
6 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ import org.junit.jupiter.api.Timeout;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@Timeout(value = 2000, unit = TimeUnit.MILLISECONDS) @Timeout(value = 2500, unit = TimeUnit.MILLISECONDS)
public class ApplyMoveTest implements TestMapNamePlayerCount { public class ApplyMoveTest implements TestMapNamePlayerCount {
private final GameDataLoader gameDataLoader = new GameDataLoader(); private final GameDataLoader gameDataLoader = new GameDataLoader();
private static void testGame(List<String> game){ private static void testGame(List<String> game){

View File

@ -11,7 +11,7 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@Timeout(value = 2000, unit = TimeUnit.MILLISECONDS) @Timeout(value = 2200, unit = TimeUnit.MILLISECONDS)
public class CalculateIslandLinksScoreTest implements TestMapNamePlayerCount { public class CalculateIslandLinksScoreTest implements TestMapNamePlayerCount {
private final GameDataLoader gameDataLoader = new GameDataLoader(); private final GameDataLoader gameDataLoader = new GameDataLoader();
private final IslandLinksScoreDataLoader islandLinksScoreDataLoader = new IslandLinksScoreDataLoader(); private final IslandLinksScoreDataLoader islandLinksScoreDataLoader = new IslandLinksScoreDataLoader();

View File

@ -11,7 +11,7 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@Timeout(value = 2000, unit = TimeUnit.MILLISECONDS) @Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
public class CalculateScoresTest implements TestMapNamePlayerCount { public class CalculateScoresTest implements TestMapNamePlayerCount {
private final GameDataLoader gameDataLoader = new GameDataLoader(); private final GameDataLoader gameDataLoader = new GameDataLoader();
private final ScoreDataLoader scoreDataLoader = new ScoreDataLoader(); private final ScoreDataLoader scoreDataLoader = new ScoreDataLoader();

View File

@ -11,7 +11,7 @@ import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS) @Timeout(value = 30000, unit = TimeUnit.MILLISECONDS)
public class GenerateAIMoveTest implements TestMapNamePlayerCount { public class GenerateAIMoveTest implements TestMapNamePlayerCount {
private final GameDataLoader gameDataLoader = new GameDataLoader(); private final GameDataLoader gameDataLoader = new GameDataLoader();
private final AllValidMovesDataLoader loader = new AllValidMovesDataLoader(); private final AllValidMovesDataLoader loader = new AllValidMovesDataLoader();

View File

@ -8,7 +8,7 @@ import org.junit.jupiter.api.Timeout;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@Timeout(value = 1000, unit = TimeUnit.MILLISECONDS) @Timeout(value = 1300, unit = TimeUnit.MILLISECONDS)
public class IsMoveStringWellFormedTest { public class IsMoveStringWellFormedTest {
private final GameDataLoader gameDataLoader = new GameDataLoader(); private final GameDataLoader gameDataLoader = new GameDataLoader();
private final List<List<String>> allGames = gameDataLoader.fetchAllGames(); private final List<List<String>> allGames = gameDataLoader.fetchAllGames();

View File

@ -8,7 +8,7 @@ import org.junit.jupiter.api.Timeout;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@Timeout(value = 1000, unit = TimeUnit.MILLISECONDS) @Timeout(value = 2000, unit = TimeUnit.MILLISECONDS)
public class IsStateStringWellFormedTest { public class IsStateStringWellFormedTest {
private final GameDataLoader gameDataLoader = new GameDataLoader(); private final GameDataLoader gameDataLoader = new GameDataLoader();
private final List<List<String>> allGames = gameDataLoader.fetchAllGames(); private final List<List<String>> allGames = gameDataLoader.fetchAllGames();