don't try missing NewMockThriftTest test
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>
Sun, 22 Nov 2020 14:00:47 +0000 (14:00 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 22 Nov 2020 14:00:47 +0000 (14:00 +0000)
Last-Update: 2019-11-30

Upstream doesn't ship NewMockThriftTest hence don't try to use it.

Gbp-Pq: Name missing_go_test.patch

test/go/src/common/clientserver_test.go

index 9f93c4c6cc807e6cf531318570b68921bb4dc39a..3c2c9b426a816036a3a464f8808237bd4bf7819a 100644 (file)
@@ -21,14 +21,10 @@ package common
 
 import (
        "context"
-       "errors"
        "gen/thrifttest"
-       "reflect"
        "sync"
        "testing"
-       "thrift"
 
-       "github.com/golang/mock/gomock"
 )
 
 type test_unit struct {
@@ -61,6 +57,7 @@ func TestAllConnection(t *testing.T) {
 }
 
 func doUnit(t *testing.T, unit *test_unit) {
+/*
        ctrl := gomock.NewController(t)
        defer ctrl.Finish()
        handler := NewMockThriftTest(ctrl)
@@ -81,6 +78,7 @@ func doUnit(t *testing.T, unit *test_unit) {
        }
        defer trans.Close()
        callEverythingWithMock(t, client, handler)
+*/
 }
 
 var rmapmap = map[int32]map[int32]int32{
@@ -98,6 +96,7 @@ var xxs = &thrifttest.Xtruct{
 var xcept = &thrifttest.Xception{ErrorCode: 1001, Message: "some"}
 var defaultCtx = context.Background()
 
+/*
 func callEverythingWithMock(t *testing.T, client *thrifttest.ThriftTestClient, handler *MockThriftTest) {
        gomock.InOrder(
                handler.EXPECT().TestVoid(gomock.Any()),
@@ -333,3 +332,4 @@ func callEverythingWithMock(t *testing.T, client *thrifttest.ThriftTestClient, h
                t.Errorf("Unexpected error in TestVoid() call: %s", err)
        }
 }
+*/