From aefc218df9520ffc32a1bda73308331c53620cfd Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Mon, 22 Aug 2022 11:08:13 +0200 Subject: [PATCH] chore: adding stop relayer func to e2e suite (#2046) * adding stop relayer func to e2e suite * updating with review suggestion --- e2e/interchain_accounts_test.go | 3 +-- e2e/testsuite/testsuite.go | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/e2e/interchain_accounts_test.go b/e2e/interchain_accounts_test.go index 8d4453a14e0..e52f3f26b1e 100644 --- a/e2e/interchain_accounts_test.go +++ b/e2e/interchain_accounts_test.go @@ -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) { diff --git a/e2e/testsuite/testsuite.go b/e2e/testsuite/testsuite.go index 93b01896581..4ca5f00df90 100644 --- a/e2e/testsuite/testsuite.go +++ b/e2e/testsuite/testsuite.go @@ -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()