Skip to content
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

Clean up event testing functions #5551

Closed
3 tasks done
DimitrisJim opened this issue Jan 9, 2024 · 5 comments · Fixed by #6070
Closed
3 tasks done

Clean up event testing functions #5551

DimitrisJim opened this issue Jan 9, 2024 · 5 comments · Fixed by #6070
Assignees
Labels
help wanted Issues for which we would appreciate help/support from the community testing Testing package and unit/integration tests

Comments

@DimitrisJim
Copy link
Contributor

DimitrisJim commented Jan 9, 2024

Mostly in reference to the following chain of comments: #5475 (review)

AssertEvents seems to currently be used in only one place (event testing for 29-fee). Elsewhere we're currently using AssertEventsLegacy. These should be consolidated and cleaned up, there should ideally be one way to check for event emission.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
@DimitrisJim DimitrisJim added the testing Testing package and unit/integration tests label Jan 9, 2024
@crodriguezvega
Copy link
Contributor

I propose we use AssertEvents and remove AssertEventsLegacy (which has the added benefit of removing the complicated EventsMap type alias). AssertEvents also supports asserting an slice of events where multiple events are of the same type.

@crodriguezvega crodriguezvega added the help wanted Issues for which we would appreciate help/support from the community label Jan 9, 2024
@vishal-kanna
Copy link
Contributor

@crodriguezvega Can i work on it?

@crodriguezvega
Copy link
Contributor

Hi @vishal-kanna, yes, thank you! Please branch off from main to avoid weird diffs in the PR. :)

@akaladarshi
Copy link
Contributor

akaladarshi commented Mar 23, 2024

Hey @crodriguezvega, is this task still open?

@crodriguezvega
Copy link
Contributor

@akaladarshi Yes, I think this is still open, so would be great if you pick it up. I will assign it to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues for which we would appreciate help/support from the community testing Testing package and unit/integration tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants