Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our teststeam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Tests for checking whether VersionFreshnessValidator.run() is pinging the server or not (see this and these tests), have a bug. The line
expect(cache.setVersionStamp, true);which 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
| await Future.wait<void>(<Future<void>>[ | |
| stamp.store( | |
| newTimeWarningWasPrinted: now, | |
| cache: cache, | |
| ), | |
| Future<void>.delayed(pauseTime), | |
| ]); |
VersionFreshnessValidator does not involve in pinging the server in anyway, instead it is handled by _getLatestAvailableFlutterDate.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our teststeam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Activity
[flutter_tools] Fix test separation between `VersionFreshnessValidato…
github-actions commentedon Sep 22, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.