Skip to content

Commit

Permalink
[tests] fixing CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiholic committed Nov 25, 2020
1 parent 4cd0f66 commit 7fff784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/flutter_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions test_integration/lib/test/rest_history_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ class RestHistoryTestState extends TestWidgetState<RestHistoryTest> {
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));

Expand Down

0 comments on commit 7fff784

Please sign in to comment.