Skip to content

Commit

Permalink
Adjusted test to ensure something exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhancock committed Sep 15, 2024
1 parent 0091b3c commit f844c90
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
package megamek.common.loaders;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.File;
Expand Down Expand Up @@ -49,8 +48,6 @@ void testCacheRebuild() {
// Make sure no units failed loading
assertTrue(cache.getFailedFiles().isEmpty());
// Sanity check to make sure the loader thread didn't fail outright
int allMekCount = cache.getAllMeks().length;
int fileCount = cache.getFileCount();
assertEquals(fileCount, allMekCount);
assertTrue(cache.getAllMeks().length > 0);
}
}

0 comments on commit f844c90

Please sign in to comment.