test: wait until checkpoint finish (#4202)

This commit is contained in:
Yingwen
2024-06-25 14:21:19 +08:00
committed by GitHub
parent 840f81e0fd
commit 4a4237115a

View File

@@ -172,6 +172,11 @@ async fn test_corrupted_data_causing_checksum_error() {
manager.update(nop_action()).await.unwrap();
}
// Wait for the checkpoint to finish.
while manager.checkpointer().is_doing_checkpoint() {
tokio::time::sleep(Duration::from_millis(50)).await;
}
// Check if there is a checkpoint
assert!(manager
.store()