From 87ccc89f19211c44a2badd40c982f97d5e368a4f Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Mon, 22 Sep 2025 13:59:02 +0000 Subject: [PATCH 1/3] More delay --- pubspec.lock | 2 +- test/check_resolution_up_to_date_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..dc01d4fb97 100644 --- a/test/check_resolution_up_to_date_test.dart +++ b/test/check_resolution_up_to_date_test.dart @@ -99,7 +99,7 @@ void main() { ]).create(); // Timestamp resolution is rather poor especially on windows. - await Future.delayed(const Duration(seconds: 1)); + await Future.delayed(const Duration(seconds: 2)); await runPub( args: ['check-resolution-up-to-date'], From 2fe32bc8537f4536a7a8be37377bfdf3ed12cb98 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Tue, 23 Sep 2025 08:03:54 +0000 Subject: [PATCH 2/3] Move timeout --- test/check_resolution_up_to_date_test.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/check_resolution_up_to_date_test.dart b/test/check_resolution_up_to_date_test.dart index dc01d4fb97..82cd19a3c3 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: 2)); + 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: 2)); - await runPub( args: ['check-resolution-up-to-date'], environment: {'_PUB_TEST_SDK_VERSION': '3.5.0'}, From e299d0038fc62d55daa39247332384b8162e3e96 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Tue, 23 Sep 2025 12:27:14 +0000 Subject: [PATCH 3/3] Back to one second --- test/check_resolution_up_to_date_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/check_resolution_up_to_date_test.dart b/test/check_resolution_up_to_date_test.dart index 82cd19a3c3..f9a6f338cd 100644 --- a/test/check_resolution_up_to_date_test.dart +++ b/test/check_resolution_up_to_date_test.dart @@ -87,7 +87,7 @@ void main() { ); // Timestamp resolution is rather poor especially on windows. - await Future.delayed(const Duration(seconds: 2)); + await Future.delayed(const Duration(seconds: 1)); await d.dir(appPath, [ d.libPubspec(