Skip to content

Commit c749134

Browse files
fix copilot issue in test
1 parent e1cfa5e commit c749134

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

storage/src/journal/contiguous/fixed.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2962,11 +2962,13 @@ mod tests {
29622962
metadata.put(PRUNING_BOUNDARY_KEY, 7u64.to_be_bytes().to_vec());
29632963
metadata.put(CLEAR_TARGET_KEY, 2u64.to_be_bytes().to_vec());
29642964
metadata.sync().await.unwrap();
2965+
drop(metadata);
29652966

29662967
// Crash Scenario 2: after the new tail blob is created, but before final metadata
29672968
// replaces the clear intent.
29682969
let (blob, _) = context.open(&blob_part, &0u64.to_be_bytes()).await.unwrap();
29692970
blob.sync().await.unwrap(); // Ensure it exists
2971+
drop(blob);
29702972

29712973
// Recovery should complete the interrupted init_at_size(2).
29722974
let journal = Journal::<_, Digest>::init(

0 commit comments

Comments
 (0)