use Clients()

pull/20460/head
Xinyi Wang 2024-02-02 12:07:26 -08:00
parent cc1246d8ba
commit 43170a5a70
1 changed files with 1 additions and 8 deletions

View File

@ -126,15 +126,8 @@ func setupClusterAndClient(t *testing.T, aclEnabled bool) (*libcluster.Cluster,
ApplyDefaultProxySettings: false,
}
cluster, _, _ := libtopology.NewCluster(t, clusterConfig)
var clientAgent libcluster.Agent
for _, a := range cluster.Agents {
if !a.IsServer() {
clientAgent = a
break
}
}
return cluster, clientAgent
return cluster, cluster.Clients()[0]
}
func terminate(t *testing.T, cluster *libcluster.Cluster) {