From c2553d69b0bc52a851c76a74959ec39f426b8d28 Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Mon, 3 Apr 2017 13:47:07 -0700 Subject: [PATCH] etcd-runner: update election command to use new Leader() interface --- tools/functional-tester/etcd-runner/command/election_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/functional-tester/etcd-runner/command/election_command.go b/tools/functional-tester/etcd-runner/command/election_command.go index 2b133a6b279..2dd60de5e09 100644 --- a/tools/functional-tester/etcd-runner/command/election_command.go +++ b/tools/functional-tester/etcd-runner/command/election_command.go @@ -94,7 +94,7 @@ func runElectionFunc(cmd *cobra.Command, args []string) { } } rcs[i].validate = func() error { - if l, err := e.Leader(context.TODO()); err == nil && l != observedLeader { + if l, err := e.Leader(context.TODO()); err == nil && string(l.Kvs[0].Value) != observedLeader { return fmt.Errorf("expected leader %q, got %q", observedLeader, l) } validatec <- struct{}{}