diff --git a/seaweed-block/core/frontend/chunkstore/startup_head_probe_test.go b/seaweed-block/core/frontend/chunkstore/startup_head_probe_test.go index dcb7c774b5..3090ba1d74 100644 --- a/seaweed-block/core/frontend/chunkstore/startup_head_probe_test.go +++ b/seaweed-block/core/frontend/chunkstore/startup_head_probe_test.go @@ -73,7 +73,8 @@ func TestCatalogStartupRequiresWrongGenerationHeadRefusal(t *testing.T) { filerpb.RegisterSeaweedFilerServer(srv, f) go func() { _ = srv.Serve(lis) }() t.Cleanup(srv.Stop) - f.masters = []string{startMaster(t, &nodesMaster{filers: []string{lis.Addr().String()}})} + _, port, _ := net.SplitHostPort(lis.Addr().String()) + f.masters = []string{startMaster(t, &nodesMaster{filers: []string{"127.0.0.1:8888." + port}})} // Preserve an unrelated namespace entry across the complete startup probe. putFile(t, f.store, "/blocks/existing/keep", []byte("untouched")) ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)