Skip to content

Commit

Permalink
Revert "Test for the minimum validator commision (#2)"
Browse files Browse the repository at this point in the history
This reverts commit 6ae217b.
  • Loading branch information
[email protected] committed Jan 10, 2022
1 parent 0fe3746 commit 4e166ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 153 deletions.
149 changes: 0 additions & 149 deletions testutil/network/integration_test.go

This file was deleted.

17 changes: 13 additions & 4 deletions testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,19 @@ type (
Config = network.Config
)

// New creates instance with fully configured Chihuahua network, along with
// creating a funded account for each name provided
func New(t *testing.T, config network.Config) *network.Network {
net := network.New(t, config)
// New creates instance with fully configured cosmos network.
// Accepts optional config, that will be used in place of the DefaultConfig() if provided.
func New(t *testing.T, configs ...network.Config) *network.Network {
if len(configs) > 1 {
panic("at most one config should be provided")
}
var cfg network.Config
if len(configs) == 0 {
cfg = DefaultConfig()
} else {
cfg = configs[0]
}
net := network.New(t, cfg)
t.Cleanup(net.Cleanup)
return net
}
Expand Down

0 comments on commit 4e166ec

Please sign in to comment.