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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
s3tables: Add t field to TestCluster for logging
Chris Lufe856928c4f8
diff --git a/test/s3tables/s3tables_integration_test.go b/test/s3tables/s3tables_integration_test.goindex 4e8adf4b56..475182853a 100644--- a/test/s3tables/s3tables_integration_test.go+++ b/test/s3tables/s3tables_integration_test.go@@ -416,6 +416,7 @@ func startMiniCluster(t *testing.T) (*TestCluster, error) {s3Endpoint := fmt.Sprintf("http://127.0.0.1:%d", s3Port)cluster := &TestCluster{+ t: t,dataDir: testDir,ctx: ctx,cancel: cancel,@@ -526,7 +527,7 @@ func (c *TestCluster) Stop() {case <-timer.C:// Timeout - goroutine doesn't respond to context cancel// This may indicate the mini cluster didn't shut down cleanly- // (Note: Warning is logged at test level when tests access cluster.Stop())+ c.t.Log("Warning: Test cluster shutdown timed out after 2 seconds")}// Reset the global cmdMini flags to prevent state leakage to other testsdiff --git a/test/s3tables/setup.go b/test/s3tables/setup.goindex 151adf3d79..2d0c9a3c0e 100644--- a/test/s3tables/setup.go+++ b/test/s3tables/setup.go@@ -4,11 +4,13 @@ import ("context""net/http""sync"+ "testing""time")// TestCluster manages the weed mini instance for integration testingtype TestCluster struct {+ t *testing.TdataDir stringctx context.Contextcancel context.CancelFunc