From 7fff784ea00024bd63b17ed92fae2ae9085e1eec Mon Sep 17 00:00:00 2001 From: "Rohit R. Abbadi" Date: Wed, 25 Nov 2020 23:34:12 +0530 Subject: [PATCH] [tests] fixing CI tests --- .github/workflows/flutter_integration.yaml | 2 +- test_integration/lib/test/rest_history_test.dart | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flutter_integration.yaml b/.github/workflows/flutter_integration.yaml index 95ab79c32..e8a9669a2 100644 --- a/.github/workflows/flutter_integration.yaml +++ b/.github/workflows/flutter_integration.yaml @@ -41,7 +41,7 @@ jobs: if: github.event.pull_request.draft == false strategy: matrix: - api-level: [24, 29] + api-level: [24, 28] fail-fast: false runs-on: "macos-latest" # ubuntu-latest cannot be used as it is only a docker container, and unfortunately running diff --git a/test_integration/lib/test/rest_history_test.dart b/test_integration/lib/test/rest_history_test.dart index 5015d6024..230d35aec 100644 --- a/test_integration/lib/test/rest_history_test.dart +++ b/test_integration/lib/test/rest_history_test.dart @@ -46,11 +46,16 @@ class RestHistoryTestState extends TestWidgetState { await Future.delayed(const Duration(seconds: 2)); final time1 = DateTime.now(); + //TODO(tiholic) iOS fails without this delay + // - timestamp on message retrieved from history + // is earlier than expected when ran in CI + await Future.delayed(const Duration(seconds: 2)); await channel.publish(name: 'history', data: 'test'); //TODO(tiholic) understand why tests fail without this delay await Future.delayed(const Duration(seconds: 2)); final time2 = DateTime.now(); + await Future.delayed(const Duration(seconds: 2)); await channel.publish(name: 'history', data: 'test2'); await Future.delayed(const Duration(seconds: 2));