-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix test cases failing with latest Dart SDK #2312
Conversation
elliette
commented
Dec 19, 2023
•
edited
Loading
edited
- fixes a new static analysis error
- updates the tests now that the new DDC type system isn't guarded behind the canary features flag
- skips the failing FrontendServerClient tests (I'm guessing this is a real issue but haven't had time to investigate, opened Frontend server client tests are failing with most recent Dart SDK #2315 - FYI @jakemac53 @derekxu16, this is failing on both the dev and main branches)
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.
Thanks for fixing this break!
dwds/test/inspector_test.dart
Outdated
@@ -160,6 +161,10 @@ void main() { | |||
final names = | |||
properties.map((p) => p.name).where((x) => x != '__proto__').toList(); | |||
final expected = [ | |||
if (dartSdkIsAtLeast( | |||
'3.3.0-242.0.dev', |
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 this is the known cutoff point, could we store it in a const in a shared lib?
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.
Done!
if (dartSdkIsAtLeast( | ||
'3.3.0-242.0.dev', | ||
)) | ||
'T', |
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 think this is fine to do to get things working, but we likely don't want T
to be exposed here - as it's not meant to be user-visible.
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.
Added a TODO and opened an issue
This reverts commit 2ef79f1.
This reverts commit 2563295.