mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
set address prefixes for tests
This commit is contained in:
parent
bbf42c7c29
commit
6f1cdeb336
@ -58,8 +58,18 @@ const (
|
||||
OpWeightMsgUnjail = "op_weight_msg_unjail"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// TestMain runs setup and teardown code before all tests.
|
||||
func TestMain(m *testing.M) {
|
||||
// set prefixes
|
||||
config := sdk.GetConfig()
|
||||
SetBech32AddressPrefixes(config)
|
||||
config.Seal()
|
||||
// load the values from simulation specific flags
|
||||
simapp.GetSimulatorFlags()
|
||||
|
||||
// run tests
|
||||
exitCode := m.Run()
|
||||
os.Exit(exitCode)
|
||||
}
|
||||
|
||||
func testAndRunTxs(app *App, config simulation.Config) []simulation.WeightedOperation {
|
||||
|
Loading…
Reference in New Issue
Block a user