diff --git a/pubspec.lock b/pubspec.lock index e8b19d1d7c..c4db46538f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -474,4 +474,4 @@ packages: source: hosted version: "2.2.2" sdks: - dart: ">=3.8.0 <4.0.0" + dart: ">=3.9.0 <4.0.0" diff --git a/test/check_resolution_up_to_date_test.dart b/test/check_resolution_up_to_date_test.dart index b17205addb..f9a6f338cd 100644 --- a/test/check_resolution_up_to_date_test.dart +++ b/test/check_resolution_up_to_date_test.dart @@ -86,6 +86,9 @@ void main() { exitCode: 0, ); + // Timestamp resolution is rather poor especially on windows. + await Future.delayed(const Duration(seconds: 1)); + await d.dir(appPath, [ d.libPubspec( 'myapp', @@ -98,9 +101,6 @@ void main() { ), ]).create(); - // Timestamp resolution is rather poor especially on windows. - await Future.delayed(const Duration(seconds: 1)); - await runPub( args: ['check-resolution-up-to-date'], environment: {'_PUB_TEST_SDK_VERSION': '3.5.0'},