Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/api/router/snapshot_session_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,15 @@ async fn mst2_durable_http_frame_and_raw_delivery_recheck_after_release() {
"revocation must suppress the next raw block or END frame"
);
assert!(stream.next().await.is_none());
// Cold raw first earns an immutable receipt, then opens the separate
// authenticated delivery stream. Revocation still suppresses its tail.
fixture.counts.assert(
if raw { 1 } else { 0 },
if raw { fixture.raw.len() } else { 0 },
if raw { 2 } else { 0 },
if raw {
fixture.raw.len() + first.len()
} else {
0
},
);
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/ceres/snapshot/chunks_stream_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ async fn exact_source_builder_admits_all_install_workspace_before_open_and_cance
let projection = build_source_with_resources(
digest,
size,
|| async { Ok(stream(vec![Ok(raw.clone())])) },
|| async {
opens.fetch_add(1, Ordering::SeqCst);
Ok(stream(vec![Ok(raw.clone())]))
},
&budget,
&builders,
)
Expand Down
Loading