Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

test(s3): aim collection force-delete at the master the suite actually runs (#10404)

Chris Lu2e9b944e5c2e
diff --git a/.github/workflows/s3tests.yml b/.github/workflows/s3tests.yml
index 15bf6e023e..980ca20dd1 100644
--- a/.github/workflows/s3tests.yml
+++ b/.github/workflows/s3tests.yml
@@ -765,7 +765,7 @@ jobs:
sleep 2
done
- go test -v
+ MASTER_ENDPOINT="http://127.0.0.1:9336" go test -v
kill -9 $pid || true
# Clean up data directory
rm -rf "$WEED_DATA_DIR" || true
diff --git a/test/s3/copying/Makefile b/test/s3/copying/Makefile
index afc510b678..ea399223f0 100644
--- a/test/s3/copying/Makefile
+++ b/test/s3/copying/Makefile
@@ -13,6 +13,9 @@ ACCESS_KEY ?= some_access_key1
SECRET_KEY ?= some_secret_key1
VOLUME_MAX_SIZE_MB ?= 50
+# Let the tests force-drop collections at the master they actually run against
+export MASTER_ENDPOINT ?= http://127.0.0.1:$(MASTER_PORT)
+
# Test directory
TEST_DIR := $(shell pwd)
SEAWEEDFS_ROOT := $(shell cd ../../../ && pwd)
diff --git a/test/s3/tagging/Makefile b/test/s3/tagging/Makefile
index 0ae7b15184..fbadb4eadb 100644
--- a/test/s3/tagging/Makefile
+++ b/test/s3/tagging/Makefile
@@ -12,6 +12,9 @@ FILER_PORT := 8893
TEST_TIMEOUT := 10m
TEST_PATTERN := TestObjectTaggingOnUpload|TestPutObjectTaggingAPI|TestDeleteObjectTagging|TestTag
+# Let the tests force-drop collections at the master they actually run against
+export MASTER_ENDPOINT ?= http://127.0.0.1:$(MASTER_PORT)
+
# Default target
help:
@echo "S3 Object Tagging Tests Makefile"