assert download error when key not exist

Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
Alex Chi Z
2025-04-16 14:16:43 -04:00
parent 6f629abfe5
commit 0beaf10ccb

View File

@@ -600,6 +600,14 @@ async fn encryption_works(ctx: &mut MaybeEnabledStorage) {
assert_eq!(vec.len(), file_len);
}
{
let download = ctx
.client
.download(&path, &DownloadOpts::default(), &cancel)
.await;
assert!(download.is_err());
}
let cancel = CancellationToken::new();
ctx.client.delete_objects(&[path], &cancel).await.unwrap();