Skip to content

Commit 27bc291

Browse files
committed
Uncomment flaky test
1 parent a7482f7 commit 27bc291

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tests/src/test/java/ApplicationTests.java

+1-11
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import mindustry.game.*;
1717
import mindustry.gen.*;
1818
import mindustry.io.*;
19-
import mindustry.io.SaveIO.*;
2019
import mindustry.maps.*;
2120
import mindustry.mod.*;
2221
import mindustry.mod.Mods.*;
@@ -884,13 +883,7 @@ DynamicTest[] testSectorValidity(){
884883

885884
logic.reset();
886885
state.rules.sector = zone.sector;
887-
try{
888-
world.loadGenerator(zone.generator.map.width, zone.generator.map.height, zone.generator::generate);
889-
}catch(SaveException e){
890-
//fails randomly and I don't care about fixing it
891-
e.printStackTrace();
892-
return;
893-
}
886+
world.loadGenerator(zone.generator.map.width, zone.generator.map.height, zone.generator::generate);
894887
zone.rules.get(state.rules);
895888
ObjectSet<Item> resources = new ObjectSet<>();
896889
boolean hasSpawnPoint = false;
@@ -930,16 +923,13 @@ DynamicTest[] testSectorValidity(){
930923

931924
if(state.rules.winWave > 0) bossWave = state.rules.winWave - 1;
932925

933-
//TODO check for difficulty?
934926
for(int i = 1; i <= bossWave; i++){
935927
int total = 0;
936928
for(SpawnGroup spawn : spawns){
937929
total += spawn.getSpawned(i - 1);
938930
}
939931

940932
assertNotEquals(0, total, "Sector " + zone + " has no spawned enemies at wave " + i);
941-
//TODO this is flawed and needs to be changed later
942-
//assertTrue(total < 75, "Sector spawns too many enemies at wave " + i + " (" + total + ")");
943933
}
944934
}
945935

0 commit comments

Comments
 (0)