Skip to content

Commit

Permalink
chore: adding stop relayer func to e2e suite (#2046)
Browse files Browse the repository at this point in the history
* adding stop relayer func to e2e suite

* updating with review suggestion
  • Loading branch information
damiannolan authored Aug 22, 2022
1 parent 7d26a87 commit aefc218
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions e2e/interchain_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ func (s *InterchainAccountsTestSuite) TestMsgSubmitTx_SuccessfulBankSend_Incenti
})

t.Run("stop relayer", func(t *testing.T) {
err := relayer.StopRelayer(ctx, s.GetRelayerExecReporter())
s.Require().NoError(err)
s.StopRelayer(ctx, relayer)
})

t.Run("broadcast incentivized MsgSubmitTx", func(t *testing.T) {
Expand Down
6 changes: 6 additions & 0 deletions e2e/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ func (s *E2ETestSuite) StartRelayer(relayer ibc.Relayer) {
s.startRelayerFn(relayer)
}

// StopRelayer stops the given relayer.
func (s *E2ETestSuite) StopRelayer(ctx context.Context, relayer ibc.Relayer) {
err := relayer.StopRelayer(ctx, s.GetRelayerExecReporter())
s.Require().NoError(err)
}

// CreateUserOnChainA creates a user with the given amount of funds on chain A.
func (s *E2ETestSuite) CreateUserOnChainA(ctx context.Context, amount int64) *ibctest.User {
chainA, _ := s.GetChains()
Expand Down

0 comments on commit aefc218

Please sign in to comment.