From 8515ae30fb792a753aaa0ea576cc4168f8bd39d7 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 14 Apr 2016 21:31:12 -0700 Subject: [PATCH] functional-tester/etcd-tester: fix error check --- tools/functional-tester/etcd-tester/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/functional-tester/etcd-tester/cluster.go b/tools/functional-tester/etcd-tester/cluster.go index 39b81b35c..fe350b7d7 100644 --- a/tools/functional-tester/etcd-tester/cluster.go +++ b/tools/functional-tester/etcd-tester/cluster.go @@ -337,7 +337,7 @@ func (c *cluster) compactKV(rev int64) (err error) { cancel() conn.Close() if cerr != nil { - if strings.Contains(err.Error(), "required revision has been compacted") && i > 0 { + if strings.Contains(cerr.Error(), "required revision has been compacted") && i > 0 { plog.Printf("%s is already compacted with %d (%v)", u, rev, cerr) } else { err = cerr