This is an automated email from the ASF dual-hosted git repository. Xuanwo pushed a commit to branch xuanwo/fix-if-modified-since-test in repository https://gitbox.apache.org/repos/asf/opendal.git
commit dd8278633feef569a2e21b7b496e2c2efcc137ad Author: Xuanwo <[email protected]> AuthorDate: Sat Nov 21 20:13:54 2026 +0100 test(object_store): avoid future If-Modified-Since dates --- 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;
