diff --git a/core/tests/behavior/async_write.rs b/core/tests/behavior/async_write.rs index 5b0a08b89bad..8e577450f232 100644 --- a/core/tests/behavior/async_write.rs +++ b/core/tests/behavior/async_write.rs @@ -225,8 +225,12 @@ pub async fn test_write_with_content_encoding(op: Operator) -> Result<()> { .content_encoding(target_content_encoding) .await?; - // TODO: check the content encoding in the stat op response? - + let meta = op.stat(&path).await.expect("stat must succeed"); + assert_eq!( + meta.content_encoding() + .expect("content encoding must exist"), + target_content_encoding + ); Ok(()) }