Skip to content

Commit

Permalink
Minimal testing
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed Aug 27, 2024
1 parent 67ca3c8 commit eef1093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,11 @@ private SharedBytes.IO nonVolatileIO() {
return io;
}

// for use in tests *only*
SharedBytes.IO testOnlyNonVolatileIO() {
return io;
}

/**
* Optimistically try to read from the region
* @return true if successful, i.e., not evicted and data available, false if evicted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ public void testGetMultiThreaded() throws IOException {
if (yield[i] == 0) {
Thread.yield();
}
assertNotNull(cacheFileRegion.testOnlyNonVolatileIO());
cacheFileRegion.decRef();
}
if (evict[i] == 0) {
Expand Down

0 comments on commit eef1093

Please sign in to comment.