Skip to content

Commit

Permalink
imp(e2e): test wip
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jun 20, 2023
1 parent 7b41e83 commit b99ba53
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions e2e/interchaintest/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,28 @@ func TestIcaControllerContract(t *testing.T) {
zaptest.NewLogger(t),
relayer.RelayerOptionExtraStartFlags{Flags: []string{"-p", "events", "-b", "100"}},
).Build(t, client, network)

// Build the network; spin up the chains and configure the relayer
const (
pathName = "wasmd-wasmd"
relayerName = "relayer"
)

ic := interchaintest.NewInterchain().
AddChain(chain1).
AddChain(chain2).
AddRelayer(r, relayerName).
AddLink(interchaintest.InterchainLink{
Chain1: chain1,
Chain2: chain2,
Relayer: r,
Path: pathName,
})

require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
NetworkID: network,
SkipPathCreation: true,
}))
}

0 comments on commit b99ba53

Please sign in to comment.