mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: fix "HashKVRequest"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
parent
6e37ece3b9
commit
b889245252
@ -32,8 +32,7 @@ matrix:
|
||||
env: TARGET=linux-386-unit
|
||||
|
||||
install:
|
||||
- ./travis/install.sh
|
||||
- if [[ "$GO111MODULE" == "on" ]]; then go mod download; fi
|
||||
- go get -t -v -d ./...
|
||||
|
||||
script:
|
||||
- echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
|
||||
|
@ -166,7 +166,7 @@ func TestV3HashKV(t *testing.T) {
|
||||
}
|
||||
|
||||
rev := resp.Header.Revision
|
||||
hresp, err := mvc.HashKV(context.Background(), &pb.HashKVRequest{0})
|
||||
hresp, err := mvc.HashKV(context.Background(), &pb.HashKVRequest{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@ -177,7 +177,7 @@ func TestV3HashKV(t *testing.T) {
|
||||
prevHash := hresp.Hash
|
||||
prevCompactRev := hresp.CompactRevision
|
||||
for i := 0; i < 10; i++ {
|
||||
hresp, err := mvc.HashKV(context.Background(), &pb.HashKVRequest{0})
|
||||
hresp, err := mvc.HashKV(context.Background(), &pb.HashKVRequest{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$TRAVIS_GO_VERSION" =~ ^1.\12\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
git clone https://github.com/dgsb/gox.git /tmp/gox
|
||||
pushd /tmp/gox
|
||||
git checkout new_master
|
||||
go build ./
|
||||
popd
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user