Skip to content

Commit

Permalink
Attempt to deal with (probably timing related) flake in the db close/…
Browse files Browse the repository at this point in the history
…restore integration test.
  • Loading branch information
rdaum committed Jan 6, 2024
1 parent 946e10a commit 2a1c5c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/db/tests/tb_restore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ mod test {
db.shutdown().await;
expected
};
// Sleep for a bit to encourage any buffers to flush, etc.
// TODO: ew.
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;

// Verify the WAL directory is not empty.
assert!(std::fs::read_dir(format!("{}/wal", tmpdir_str))
.unwrap()
Expand Down

0 comments on commit 2a1c5c3

Please sign in to comment.