Some tests of VersionFreshnessValidator are incorrect #104065
Labels
a: tests
"flutter test", flutter_test, or one of our tests
P2
Important issues not at the top of the work list
team-tool
Owned by Flutter Tool team
tool
Affects the "flutter" command-line tool. See also t: labels.
triaged-tool
Triaged by Flutter Tool team
Tests for checking whether
VersionFreshnessValidator.run()
is pinging the server or not (see this and these tests), have a bug. The linewhich is used to check whether there has been a write to the cache, only possible when the tool tries to ping the server, actually satisfy because of these lines:
flutter/packages/flutter_tools/lib/src/version.dart
Lines 976 to 982 in ec02990
VersionFreshnessValidator
does not involve in pinging the server in anyway, instead it is handled by_getLatestAvailableFlutterDate
.The text was updated successfully, but these errors were encountered: