Merge pull request #14637 from veshij/hashkv_fix

[e2e] don't pass --endpoints flag in test HashKV implementation
This commit is contained in:
Benjamin Wang
2022-10-27 18:12:01 +08:00
committed by GitHub

View File

@@ -23,11 +23,12 @@ import (
"strings"
"time"
"google.golang.org/grpc"
"go.etcd.io/etcd/api/v3/authpb"
"go.etcd.io/etcd/api/v3/etcdserverpb"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/tests/v3/framework/config"
"google.golang.org/grpc"
)
type EtcdctlV3 struct {
@@ -355,7 +356,7 @@ func (ctl *EtcdctlV3) HashKV(ctx context.Context, rev int64) ([]*clientv3.HashKV
Endpoint string
HashKV *clientv3.HashKVResponse
}
err := ctl.spawnJsonCmd(ctx, &epHashKVs, "endpoint", "hashkv", "--endpoints", strings.Join(ctl.endpoints, ","), "--rev", fmt.Sprint(rev))
err := ctl.spawnJsonCmd(ctx, &epHashKVs, "endpoint", "hashkv", "--rev", fmt.Sprint(rev))
if err != nil {
return nil, err
}