Skip to content

Commit

Permalink
Fix the test - attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mszeszko-meta committed Jan 22, 2025
1 parent c753162 commit e7f6ca8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions java/src/test/java/org/rocksdb/EventListenerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ void deleteTableFile(final AbstractEventListener el, final AtomicBoolean wasCbCa
assertThat(liveFiles).isNotNull();
assertThat(liveFiles.files).isNotNull();
assertThat(liveFiles.files.isEmpty()).isFalse();
db.deleteFilesInRanges(
null, Arrays.asList("testKey".getBytes(), "testKey".getBytes()), true /* includeEnd */);
db.delete("testKey".getBytes());
final FlushOptions flushOptions = new FlushOptions();
db.flush(flushOptions);
db.compactRange("testKey".getBytes(), null);
assertThat(wasCbCalled.get()).isTrue();
}
}
Expand Down

0 comments on commit e7f6ca8

Please sign in to comment.