Skip to content

Commit

Permalink
test: fix flaky cases. (#16649)
Browse files Browse the repository at this point in the history
close #16648

Fix the flaky test `raftstore::test_snap::test_v1_apply_snap_from_v2`.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
  • Loading branch information
LykxSassinator committed Mar 14, 2024
1 parent 8faa192 commit 9ee8a11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/engine_rocks/src/checkpoint.rs
Expand Up @@ -34,6 +34,8 @@ impl Checkpointer for RocksEngineCheckpointer {
titan_out_dir: Option<&Path>,
log_size_for_flush: u64,
) -> Result<()> {
#[cfg(any(test, feature = "testexport"))]
file_system::delete_dir_if_exist(db_out_dir).unwrap();
self.0
.create_at(db_out_dir, titan_out_dir, log_size_for_flush)
.map_err(|e| r2e(e))
Expand Down

0 comments on commit 9ee8a11

Please sign in to comment.