From a466d5cc2eddeaafc3096c69b76a6fc0f5a05fbc Mon Sep 17 00:00:00 2001 From: Oleg Guba Date: Thu, 20 Oct 2022 17:37:06 -0400 Subject: [PATCH] [e2e] Fix bug in EtcdctlV3.HashKV() Signed-off-by: Oleg Guba --- tests/framework/e2e/etcdctl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/framework/e2e/etcdctl.go b/tests/framework/e2e/etcdctl.go index 024bd9d74..b902c9173 100644 --- a/tests/framework/e2e/etcdctl.go +++ b/tests/framework/e2e/etcdctl.go @@ -337,8 +337,8 @@ func (ctl *EtcdctlV3) HashKV(ctx context.Context, rev int64) ([]*clientv3.HashKV return nil, err } resp := make([]*clientv3.HashKVResponse, len(epHashKVs)) - for _, e := range epHashKVs { - resp = append(resp, e.HashKV) + for i, e := range epHashKVs { + resp[i] = e.HashKV } return resp, err }