mirror of https://github.com/status-im/consul.git
testutil: Using the correct RPC struct
This commit is contained in:
parent
4755c73359
commit
1b15415616
|
@ -32,7 +32,7 @@ type rpcFn func(string, interface{}, interface{}) error
|
|||
func WaitForLeader(t *testing.T, rpc rpcFn, dc string) structs.IndexedNodes {
|
||||
var out structs.IndexedNodes
|
||||
WaitForResult(func() (bool, error) {
|
||||
args := &structs.RegisterRequest{
|
||||
args := &structs.DCSpecificRequest{
|
||||
Datacenter: dc,
|
||||
}
|
||||
err := rpc("Catalog.ListNodes", args, &out)
|
||||
|
|
Loading…
Reference in New Issue