From f379e7ca047ff2ab065cca75f51d26ebebbb8dc7 Mon Sep 17 00:00:00 2001 From: Kha Truong <64438356+khatruong2009@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:47:25 -0700 Subject: [PATCH] chore: made the Future.delayed more explicit --- .../test/remote_constraint_provider_test.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/logging_cloudwatch/aws_logging_cloudwatch/test/remote_constraint_provider_test.dart b/packages/logging_cloudwatch/aws_logging_cloudwatch/test/remote_constraint_provider_test.dart index ded004352d..67f86d93a8 100644 --- a/packages/logging_cloudwatch/aws_logging_cloudwatch/test/remote_constraint_provider_test.dart +++ b/packages/logging_cloudwatch/aws_logging_cloudwatch/test/remote_constraint_provider_test.dart @@ -131,7 +131,7 @@ void main() { }); test('initializes _loggingConstraint from endpoint', () async { - await Future.delayed(const Duration(seconds: 3)); + await Future.delayed(const Duration(seconds: 3)); // Verify that _loggingConstraint exists expect( @@ -154,7 +154,7 @@ void main() { when(() => mockFileStorage.loadConstraint(any())) .thenAnswer((_) async => Future.value(null)); - await Future.delayed(const Duration(seconds: 3)); + await Future.delayed(const Duration(seconds: 3)); // Verify that _loggingConstraint is set expect(provider.loggingConstraint, equals(null)); @@ -171,7 +171,7 @@ void main() { when(() => mockFileStorage.loadConstraint(any())) .thenAnswer((_) async => Future.value(sampleJson)); - await Future.delayed(const Duration(seconds: 3)); + await Future.delayed(const Duration(seconds: 3)); // Verify that _loggingConstraint uses local storage expect( @@ -208,7 +208,7 @@ void main() { ); }); - await Future.delayed(const Duration(seconds: 3)); + await Future.delayed(const Duration(seconds: 3)); // Verify that _loggingConstraint got updated expect(