test: identify the probe filer by its advertised gRPC address

This commit is contained in:
pingqiu committed 2026-11-29 16:45:02 -08:00
1 parent e861733a8a
commit 2d6664edb4
1 file changed
+2 -1
@@ -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)