integration: fix "HashKVRequest"

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
Gyuho Lee 2019-08-14 03:09:54 -07:00
parent 6e37ece3b9
commit b889245252
3 changed files with 3 additions and 15 deletions

View File

@ -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}"

View File

@ -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)
}

View File

@ -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