Skip to content

Commit

Permalink
fix: enable node grpc service in tests (#2164)
Browse files Browse the repository at this point in the history
This was missed in #2122
since app construction is different in tests than via the binary
  • Loading branch information
cmwaters authored Jul 26, 2023
1 parent 7807722 commit 15d5a67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/util/testnode/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ func StartGRPCServer(app srvtypes.Application, appCfg *srvconfig.Config, cctx Co
// Add the tendermint queries service in the gRPC router.
app.RegisterTendermintService(cctx.Context)

// Add the node service queries to the grpc router.
if a, ok := app.(srvtypes.ApplicationQueryService); ok {
a.RegisterNodeService(cctx.Context)
}

grpcSrv, err := srvgrpc.StartGRPCServer(cctx.Context, app, appCfg.GRPC)
if err != nil {
return Context{}, emptycleanup, err
Expand Down

0 comments on commit 15d5a67

Please sign in to comment.