mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
test: identify the probe filer by its advertised gRPC address
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user