This is an automated email from the ASF dual-hosted git repository.
tustvold pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs-object-store.git
The following commit(s) were added to refs/heads/main by this push:
new c54728c Fix racy test (#372)
c54728c is described below
commit c54728ca87fc2ae711310dca9f3c270d530b06c6
Author: Raphael Taylor-Davies <[email protected]>
AuthorDate: Mon May 19 13:46:21 2025 +0100
Fix racy test (#372)
---
.github/workflows/ci.yml | 1 +
src/aws/mod.rs | 2 ++
2 files changed, 3 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 954ee8a..b332cc0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -130,6 +130,7 @@ jobs:
echo "EC2_METADATA_CONTAINER=$(docker run -d -p 1338:1338
amazon/amazon-ec2-metadata-mock:v1.9.2 --imdsv2)" >> $GITHUB_ENV
aws --endpoint-url=http://localhost:4566 s3 mb s3://test-bucket
aws --endpoint-url=http://localhost:4566 s3 mb
s3://test-bucket-for-spawn
+ aws --endpoint-url=http://localhost:4566 s3 mb
s3://test-bucket-for-checksum
aws --endpoint-url=http://localhost:4566 s3api create-bucket
--bucket test-object-lock --object-lock-enabled-for-bucket
aws --endpoint-url=http://localhost:4566 dynamodb create-table
--table-name test-table --key-schema AttributeName=path,KeyType=HASH
AttributeName=etag,KeyType=RANGE --attribute-definitions
AttributeName=path,AttributeType=S AttributeName=etag,AttributeType=S
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
diff --git a/src/aws/mod.rs b/src/aws/mod.rs
index 6b9b228..9530e07 100644
--- a/src/aws/mod.rs
+++ b/src/aws/mod.rs
@@ -511,7 +511,9 @@ mod tests {
async fn write_multipart_file_with_signature() {
maybe_skip_integration!();
+ let bucket = "test-bucket-for-checksum";
let store = AmazonS3Builder::from_env()
+ .with_bucket_name(bucket)
.with_checksum_algorithm(Checksum::SHA256)
.build()
.unwrap();