From 8d444f2eeda026ba78e0447c43fa9687bd9b6f74 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 15 Oct 2015 15:09:13 -0700 Subject: [PATCH] Ports a couple of new RPC calls to the updated codec mechanism. --- consul/kvs_endpoint_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/kvs_endpoint_test.go b/consul/kvs_endpoint_test.go index bdc43f1c9e..0ebec469b9 100644 --- a/consul/kvs_endpoint_test.go +++ b/consul/kvs_endpoint_test.go @@ -281,7 +281,7 @@ func TestKVSEndpoint_List(t *testing.T) { // Try listing a nonexistent prefix getR.Key = "/nope" - if err := client.Call("KVS.List", &getR, &dirent); err != nil { + if err := msgpackrpc.CallWithCodec(codec, "KVS.List", &getR, &dirent); err != nil { t.Fatalf("err: %v", err) } if dirent.Index == 0 { @@ -529,7 +529,7 @@ func TestKVSEndpoint_ListKeys(t *testing.T) { // Try listing a nonexistent prefix getR.Prefix = "/nope" - if err := client.Call("KVS.ListKeys", &getR, &dirent); err != nil { + if err := msgpackrpc.CallWithCodec(codec, "KVS.ListKeys", &getR, &dirent); err != nil { t.Fatalf("err: %v", err) } if dirent.Index == 0 {