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{}{}