Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@jonahwilliams : any suggestion on how to unit test this? |
|
The @jonahwilliams thoughts? |
|
There is a FakeVmServiceHost which can be configured for a set of request/responses, there should be a number of tests that use that pattern. You should be able to provide that fake vm service in place of the real one to get a unit test going. |
|
For example: |
|
@dramosv90 I believe we asked you several months ago to stop approving PRs that you have not really reviewed, or are not involved in the design decision for. |
Removes global variables and adds unit tests that can be copied for #65118
This would help us investigate issues like flutter#64781
6506b28 to
8f45f4d
Compare
|
@jonahwilliams : test added :) |
| logger: logger, | ||
| ); | ||
|
|
||
| final dynamic kExpectedTimeline = json.decode(''' |
There was a problem hiding this comment.
if you parse the result and compare a dart map, the test will be resilient to changes in formatting.
|
This pull request is not suitable for automatic merging in its current state.
|
|
What's the status of this PR? Do the presubmit checks need another kick? |
|
"Google tests" seems to be stuck. Merge manually now. |
This would help us investigate issues like
#64781