From b889245252d09995685a531e10d5a048e0744396 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 14 Aug 2019 03:09:54 -0700 Subject: [PATCH] integration: fix "HashKVRequest" Signed-off-by: Gyuho Lee --- .travis.yml | 3 +-- integration/v3_grpc_test.go | 4 ++-- travis/install.sh | 11 ----------- 3 files changed, 3 insertions(+), 15 deletions(-) delete mode 100755 travis/install.sh diff --git a/.travis.yml b/.travis.yml index da81275fd..8cfde728e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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}" diff --git a/integration/v3_grpc_test.go b/integration/v3_grpc_test.go index c6e4a3d16..33015921c 100644 --- a/integration/v3_grpc_test.go +++ b/integration/v3_grpc_test.go @@ -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) } diff --git a/travis/install.sh b/travis/install.sh deleted file mode 100755 index 07f453278..000000000 --- a/travis/install.sh +++ /dev/null @@ -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