This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 79c1b4fd5f test(object_store): avoid future If-Modified-Since dates
(#8587)
79c1b4fd5f is described below
commit 79c1b4fd5fa6e6074597357b95d2117fe1e679b9
Author: Xuanwo <[email protected]>
AuthorDate: Sun Nov 22 03:36:53 2026 +0800
test(object_store): avoid future If-Modified-Since dates (#8587)
---
integrations/object_store/tests/behavior/get.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/integrations/object_store/tests/behavior/get.rs
b/integrations/object_store/tests/behavior/get.rs
index 6d19d32378..da36350303 100644
--- a/integrations/object_store/tests/behavior/get.rs
+++ b/integrations/object_store/tests/behavior/get.rs
@@ -311,8 +311,9 @@ async fn test_get_opts_with_if_modified_since(store:
OpendalStore) -> Result<()>
let data = ret.bytes().await?;
assert_eq!(value, data);
+ // S3 ignores future If-Modified-Since dates.
let opts = GetOptions {
- if_modified_since: Some(meta.last_modified +
std::time::Duration::from_secs(1)),
+ if_modified_since: Some(meta.last_modified),
..Default::default()
};
let ret = store.get_opts(&location, opts).await;