Skip to content

Commit 486d5a6

Browse files
authored
Add delay to test (#4664)
1 parent da5be2f commit 486d5a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/check_resolution_up_to_date_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ void main() {
3434
output: contains('Resolution is up-to-date'),
3535
exitCode: 0,
3636
);
37+
38+
// Timestamp resolution is rather poor especially on windows.
3739
await Future<Null>.delayed(const Duration(seconds: 1));
3840

3941
await d.appDir(dependencies: {'foo': '2.0.0'}).create();
@@ -96,6 +98,9 @@ void main() {
9698
),
9799
]).create();
98100

101+
// Timestamp resolution is rather poor especially on windows.
102+
await Future<Null>.delayed(const Duration(seconds: 1));
103+
99104
await runPub(
100105
args: ['check-resolution-up-to-date'],
101106
environment: {'_PUB_TEST_SDK_VERSION': '3.5.0'},

0 commit comments

Comments
 (0)