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

Improve assertEventOrder failure output #106

Conversation

christophebedard
Copy link
Member

Make the output in case of failure a bit more helpful by relying on self.assertListEqual, which shows a somewhat-helpful diff.

Also, optimize are_events_ordered() a bit.

Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
@christophebedard christophebedard self-assigned this Apr 4, 2024
Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with green CI

@christophebedard
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@christophebedard christophebedard merged commit e4f1e7f into rolling Apr 5, 2024
7 of 9 checks passed
@christophebedard christophebedard deleted the christophebedard/improve-assert-event-order-failure-output branch April 5, 2024 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants