chore: adding stop relayer func to e2e suite#2046
Merged
damiannolan merged 6 commits intomainfrom Aug 22, 2022
Merged
Conversation
chatton
reviewed
Aug 19, 2022
e2e/testsuite/testsuite.go
Outdated
|
|
||
| // StopRelayer stops the given relayer. | ||
| func (s *E2ETestSuite) StopRelayer(ctx context.Context, relayer ibc.Relayer, eRep ibc.RelayerExecReporter) { | ||
| err := relayer.StopRelayer(ctx, eRep) |
Contributor
There was a problem hiding this comment.
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)
}
Contributor
Author
There was a problem hiding this comment.
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.
Contributor
There was a problem hiding this comment.
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)
Contributor
|
Does this PR close #1974? |
…c-go into damian/e2e-stop-relayer-helper
3 tasks
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/)godoccomments.Unreleasedsection inCHANGELOG.mdFiles changedin the Github PR explorerCodecov Reportin the comment section below once CI passes