s3tables: Add t field to TestCluster for logging

Add *testing.T field to TestCluster struct and initialize it in
startMiniCluster. This allows Stop() to properly log warnings when
cluster shutdown times out. Includes the t field in the test cluster
initialization and restores the logging statement in Stop().
This commit is contained in:
Chris Lu
2026-01-28 17:02:53 -08:00
parent 6658a655f6
commit fe856928c4
2 changed files with 4 additions and 1 deletions

View File

@@ -4,11 +4,13 @@ import (
"context"
"net/http"
"sync"
"testing"
"time"
)
// TestCluster manages the weed mini instance for integration testing
type TestCluster struct {
t *testing.T
dataDir string
ctx context.Context
cancel context.CancelFunc