Skip to content

Commit

Permalink
extend snapshot test sleep (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma authored Jan 29, 2024
1 parent 2e04f8f commit fd5550a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libsql-server/src/replication/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ mod test {
.unwrap();

// wait a bit for snapshot to be compated
tokio::time::sleep(Duration::from_millis(300)).await;
tokio::time::sleep(Duration::from_millis(1500)).await;

// no error occured: the loop is still running.
assert!(!compactor.sender.is_closed());
Expand Down Expand Up @@ -678,7 +678,7 @@ mod test {

let _compactor =
LogCompactor::new(tmp.path(), Uuid::new_v4(), Box::new(|_| Ok(()))).unwrap();
tokio::time::sleep(Duration::from_millis(100)).await;
tokio::time::sleep(Duration::from_millis(1000)).await;

// emtpy snapshot was discarded
assert_dir_is_empty(&tmp.path().join("to_compact")).await;
Expand Down Expand Up @@ -751,7 +751,7 @@ mod test {
.unwrap();

// wait a bit for snapshot to be compated
tokio::time::sleep(Duration::from_millis(300)).await;
tokio::time::sleep(Duration::from_millis(1500)).await;

// no error occured: the loop is still running.
assert!(!compactor.sender.is_closed());
Expand Down

0 comments on commit fd5550a

Please sign in to comment.