-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathcli_test.go
More file actions
46 lines (36 loc) · 1.53 KB
/
cli_test.go
File metadata and controls
46 lines (36 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//go:build norace
// +build norace
package tests
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
gravitytypes "github.com/umee-network/Gravity-Bridge/module/x/gravity/types"
umeeappbeta "github.com/umee-network/umee/app/beta"
)
func TestIntegrationTestSuite(t *testing.T) {
cfg := umeeappbeta.IntegrationTestNetworkConfig()
cfg.NumValidators = 2
cfg.Mnemonics = []string{
"empower ridge mystery shrimp predict alarm swear brick across funny vendor essay antique vote place lava proof gaze crush head east arch twin lady",
"clean target advice dirt onion correct original vibrant actor upon waste eternal color barely shrimp aspect fall material wait repeat bench demise length seven",
}
var gravityGenState gravitytypes.GenesisState
require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[gravitytypes.ModuleName], &gravityGenState))
gravityGenState.DelegateKeys = []gravitytypes.MsgSetOrchestratorAddress{
{
Validator: "umeevaloper1t3ass54lpra0klz047k0dax33ckahym5phdrpg",
Orchestrator: "umee1t3ass54lpra0klz047k0dax33ckahym5pn2vsz",
EthAddress: "0x9fc56f2e851e1ab2b4c0fc4f6344800f29652ffe",
},
{
Validator: "umeevaloper1kqh6nt4f48vptvq4j5cgr0nfd2x4z9ulvrtqrh",
Orchestrator: "umee1kqh6nt4f48vptvq4j5cgr0nfd2x4z9ulv8v0ja",
EthAddress: "0xddfda961410b2815b48679377baa0009ace173a2",
},
}
bz, err := cfg.Codec.MarshalJSON(&gravityGenState)
require.NoError(t, err)
cfg.GenesisState[gravitytypes.ModuleName] = bz
suite.Run(t, NewIntegrationTestSuite(cfg))
}