From 1b15415616285e5d8f64a187f6bde215c719fbfa Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 10 Jun 2014 18:04:24 -0700 Subject: [PATCH] testutil: Using the correct RPC struct --- testutil/wait.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/wait.go b/testutil/wait.go index 402553352f..ae2439437b 100644 --- a/testutil/wait.go +++ b/testutil/wait.go @@ -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)