From 368f0ea0bac726049f4a81aebfee0a76c91c50a7 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Wed, 24 May 2017 15:53:41 +0300 Subject: [PATCH] Cleanup tests --- commands_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/commands_test.go b/commands_test.go index 3a0240d..7e5d401 100644 --- a/commands_test.go +++ b/commands_test.go @@ -114,13 +114,12 @@ var _ = Describe("Commands", func() { Expect(get.Err()).NotTo(HaveOccurred()) Expect(get.Val()).To(Equal("theclientname")) - }) It("should ConfigGet", func() { - r := client.ConfigGet("*") - Expect(r.Err()).NotTo(HaveOccurred()) - Expect(r.Val()).NotTo(BeEmpty()) + val, err := client.ConfigGet("*").Result() + Expect(err).NotTo(HaveOccurred()) + Expect(val).NotTo(BeEmpty()) }) It("should ConfigResetStat", func() {