Skip to content

Commit f78f0f4

Browse files
committed
lint
1 parent 6bdfb65 commit f78f0f4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

client/v2/autocli/common_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"net"
77
"testing"
88

9+
"github.com/cosmos/gogoproto/proto"
910
"github.com/spf13/cobra"
1011
"google.golang.org/grpc"
1112
"google.golang.org/grpc/credentials/insecure"
@@ -27,7 +28,6 @@ import (
2728
"github.com/cosmos/cosmos-sdk/types/msgservice"
2829
"github.com/cosmos/cosmos-sdk/x/bank"
2930
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
30-
"github.com/cosmos/gogoproto/proto"
3131
)
3232

3333
type fixture struct {
@@ -74,11 +74,9 @@ func initFixture(t *testing.T) *fixture {
7474

7575
conn := &testClientConn{ClientConn: clientConn}
7676

77+
// using merged registry to get pulsar + gogo files
7778
mergedFiles, err := proto.MergedRegistry()
78-
if err != nil {
79-
t.Log("failed to get merged files, using global files")
80-
mergedFiles = protoregistry.GlobalFiles
81-
}
79+
assert.NilError(t, err)
8280

8381
b := &Builder{
8482
Builder: flag.Builder{

0 commit comments

Comments
 (0)