From 887dfe6169329c5b6a84b9cd1b9008e017665c14 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Tue, 2 Sep 2025 10:43:05 +0000 Subject: [PATCH] Add delay to test --- test/check_resolution_up_to_date_test.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/check_resolution_up_to_date_test.dart b/test/check_resolution_up_to_date_test.dart index 45e0edcce1..b17205addb 100644 --- a/test/check_resolution_up_to_date_test.dart +++ b/test/check_resolution_up_to_date_test.dart @@ -34,6 +34,8 @@ void main() { output: contains('Resolution is up-to-date'), exitCode: 0, ); + + // Timestamp resolution is rather poor especially on windows. await Future.delayed(const Duration(seconds: 1)); await d.appDir(dependencies: {'foo': '2.0.0'}).create(); @@ -96,6 +98,9 @@ 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'},