Skip to content

Commit 4e166ec

Browse files
author
lydia.pierce@principia.edu
committed
Revert "Test for the minimum validator commision (#2)"
This reverts commit 6ae217b.
1 parent 0fe3746 commit 4e166ec

2 files changed

Lines changed: 13 additions & 153 deletions

File tree

testutil/network/integration_test.go

Lines changed: 0 additions & 149 deletions
This file was deleted.

testutil/network/network.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ type (
2626
Config = network.Config
2727
)
2828

29-
// New creates instance with fully configured Chihuahua network, along with
30-
// creating a funded account for each name provided
31-
func New(t *testing.T, config network.Config) *network.Network {
32-
net := network.New(t, config)
29+
// New creates instance with fully configured cosmos network.
30+
// Accepts optional config, that will be used in place of the DefaultConfig() if provided.
31+
func New(t *testing.T, configs ...network.Config) *network.Network {
32+
if len(configs) > 1 {
33+
panic("at most one config should be provided")
34+
}
35+
var cfg network.Config
36+
if len(configs) == 0 {
37+
cfg = DefaultConfig()
38+
} else {
39+
cfg = configs[0]
40+
}
41+
net := network.New(t, cfg)
3342
t.Cleanup(net.Cleanup)
3443
return net
3544
}

0 commit comments

Comments
 (0)