-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: adding stop relayer func to e2e suite #2046
Conversation
e2e/testsuite/testsuite.go
Outdated
@@ -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, eRep ibc.RelayerExecReporter) { | |||
err := relayer.StopRelayer(ctx, eRep) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we're creating a separate function then we can probably remove eRep
as an argument
func (s *E2ETestSuite) StopRelayer(ctx context.Context, relayer ibc.Relayer) {
err := relayer.StopRelayer(ctx, s.GetRelayerExecReporter())
s.Require().NoError(err)
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! I'll push an update.
I was thinking it might be an idea to eventually move the ctx onto the E2ETestSuite
as well, as I think it's just being retrieved from context.TODO()
in most test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah atm it's just doing a passthrough to the ibctest functions, but I think having the context at the test level can be useful. It allows for things like timeouts and cancellations. (we just aren't using it for anything atm)
Does this PR close #1974? |
…c-go into damian/e2e-stop-relayer-helper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Description
closes: #1974
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes