From 9c331e42ae835160f6c0f76bfc4e332838f2a7b0 Mon Sep 17 00:00:00 2001 From: Callum Waters Date: Thu, 29 Sep 2022 17:23:25 +0200 Subject: [PATCH] fix grpc test --- consensus/reactor_test.go | 8 -------- rpc/grpc/grpc_test.go | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/consensus/reactor_test.go b/consensus/reactor_test.go index 2bd4ad8a0..1c212a6ac 100644 --- a/consensus/reactor_test.go +++ b/consensus/reactor_test.go @@ -5,8 +5,6 @@ import ( "fmt" "os" "path" - "runtime" - // "runtime/pprof" "sync" "testing" "time" @@ -683,12 +681,6 @@ func timeoutWaitGroup(t *testing.T, n int, f func(int), css []*State) { } } -func capture() { - trace := make([]byte, 10240000) - count := runtime.Stack(trace, true) - fmt.Printf("Stack of %d bytes: %s\n", count, trace) -} - //------------------------------------------------------------- // Ensure basic validation of structs is functioning diff --git a/rpc/grpc/grpc_test.go b/rpc/grpc/grpc_test.go index 41a625a64..ecc3494cc 100644 --- a/rpc/grpc/grpc_test.go +++ b/rpc/grpc/grpc_test.go @@ -27,7 +27,7 @@ func TestMain(m *testing.M) { func TestBroadcastTx(t *testing.T) { res, err := rpctest.GetGRPCClient().BroadcastTx( context.Background(), - &core_grpc.RequestBroadcastTx{Tx: []byte("this is a tx")}, + &core_grpc.RequestBroadcastTx{Tx: kvstore.NewTx("hello", "world")}, ) require.NoError(t, err) require.EqualValues(t, 0, res.CheckTx.Code)