test(kar): cover array cursor sync failure
Linux / verify (pull_request) Successful in 2m15s
Linux / changed-scope-coverage (pull_request) Skipped
Linux / keyless-cuda (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 1m31s
Linux / linux-static-cli (pull_request) Successful in 5m26s
Linux / release-cli (pull_request) Skipped

This commit is contained in:
Pavlo Ratushnyi
2026-10-07 04:33:56 +02:00
parent 7f4e40d103
commit 3c9c64d4b4
+2
View File
@@ -3730,6 +3730,8 @@ mod tests {
fn raw_spool_sync_failure_propagates_for_borrowed_and_owned_cursors() {
let fixture = overlay_fixture();
let bytes = 2.5f32.to_le_bytes();
let mut array_cursor = std::io::Cursor::new(bytes);
assert_cursor_spool_sync_error(&mut array_cursor, &fixture.directory.join("array.raw"));
let mut borrowed = std::io::Cursor::new(bytes.as_slice());
assert_cursor_spool_sync_error(&mut borrowed, &fixture.directory.join("borrowed.raw"));
let mut owned = std::io::Cursor::new(bytes.to_vec());