-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Assert golden files use the right extension #99016
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
Conversation
goderbauer
left a comment
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
| ); | ||
| }); | ||
|
|
||
| test('asserts .png format', () async { |
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.
Maybe rewrite these with the throwsA type matcher using having similarly to how it is done in:
| throwsA( |
await expectLater since the call is async here.
In general, I find that style less error prone (because the fail call is easy to forget) and a little clearer in its intention.
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.
Ah! Thank you! I was patting myself on the back for remembering the fail, while simultaneously trying to remember the better way to do it. 😜
Will update.
| }); | ||
|
|
||
| test('asserts .png format', () async { | ||
| expectLater( |
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.
I believe you have to await these, no?
This reverts commit ee86e61.
…lutter#99075) This reverts commit ee86e61.
Fixes #98943
This ensures golden files in the framework always have the file extension included.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.