Pārlūkot izejas kodu

integration: fix "HashKVRequest"

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Gyuho Lee 6 gadi atpakaļ
vecāks
revīzija
b889245252
3 mainītis faili ar 3 papildinājumiem un 15 dzēšanām
  1. 1 2
      .travis.yml
  2. 2 2
      integration/v3_grpc_test.go
  3. 0 11
      travis/install.sh

+ 1 - 2
.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}"

+ 2 - 2
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)
 			}

+ 0 - 11
travis/install.sh

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