fix grpc test

This commit is contained in:
Callum Waters
2022-09-29 17:23:25 +02:00
parent 6841eb14bb
commit 9c331e42ae
2 changed files with 1 additions and 9 deletions

View File

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

View File

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