mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
assert download error when key not exist
Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user