testutil: Using the correct RPC struct

This commit is contained in:
Armon Dadgar 2014-06-10 18:04:24 -07:00
parent d23564b3c4
commit 8b7417a043
1 changed files with 1 additions and 1 deletions

View File

@ -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)