refactor(tests): use grpc instead of cli for all network testing (#301)

* update

* use grpc
This commit is contained in:
Alex Johnson
2023-12-13 15:49:50 -05:00
committed by GitHub
parent b48073d3eb
commit af3bb52d57
4 changed files with 31 additions and 19 deletions
+3 -3
View File
@@ -19,11 +19,11 @@ import (
blocksdktypes "github.com/skip-mev/block-sdk/x/blocksdk/types"
)
// NetworkTestSuite is a test suite for query tests that initializes a network instance.
// NetworkTestSuite is a test suite for tests that initializes a network instance.
type NetworkTestSuite struct {
suite.Suite
Network *network.Network
NetworkSuite *network.TestSuite
AuctionState auctiontypes.GenesisState
BlockSDKState blocksdktypes.GenesisState
}
@@ -49,7 +49,7 @@ func (nts *NetworkTestSuite) SetupSuite() {
nts.BlockSDKState = populateBlockSDK(r, nts.BlockSDKState)
updateGenesisConfigState(blocksdktypes.ModuleName, &nts.BlockSDKState)
nts.Network = network.New(nts.T(), cfg)
nts.NetworkSuite = network.NewSuite(nts.T(), cfg)
}
func populateAuction(_ *rand.Rand, auctionState auctiontypes.GenesisState) auctiontypes.GenesisState {