Skip to content

Commit

Permalink
Merge pull request #1299 from tdrwenski/improve-cache-test
Browse files Browse the repository at this point in the history
Improve flaky test
  • Loading branch information
haileyajohnson authored Jan 31, 2024
2 parents 2322c54 + 9ad6aef commit 1d4b9cf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ public class TestRandomAccessFileCacheCleanup {

@BeforeClass
public static void enableCache() {
RandomAccessFile.shutdown();
cache = new FileCache("RandomAccessFile", 0, 1, 1, 0);
RandomAccessFile.setGlobalFileCache(cache);
assertThat(cache.showCache().size()).isEqualTo(0);
}

@AfterClass
public static void shutdownCache() {
RandomAccessFile.shutdown();
RandomAccessFile.setGlobalFileCache(null);
}

Expand Down

0 comments on commit 1d4b9cf

Please sign in to comment.