From 84995bd516d94a3a7e52e752ad666a8b22068498 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 10 Sep 2020 19:50:03 -0700 Subject: [PATCH] Disable iOS ScenariosTests suite (flutter/engine#21080) This disables the macOS Scenarios app tests until a fix for the current flakiness is found. This also reverts commit 9ef075582e0dcaa4df990338b931219465ffcbce where one test was previously disabled. However, another started failing soon after, so instead we disable the whole suite here. --- .../ScenariosTests/AppLifecycleTests.m | 4 +--- .../testing/scenario_app/run_ios_tests.sh | 17 +++++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/AppLifecycleTests.m b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/AppLifecycleTests.m index 3efa174131..b2bf497cf3 100644 --- a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/AppLifecycleTests.m +++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/AppLifecycleTests.m @@ -227,9 +227,7 @@ FLUTTER_ASSERT_ARC [engine setViewController:nil]; } -// TODO(cbracken): re-enable this test by removing the skip_ prefix once the source of its flakiness -// has been identified. https://github.com/flutter/flutter/issues/61620 -- (void)skip_testFlutterViewControllerDetachingSendsApplicationLifecycle { +- (void)testFlutterViewControllerDetachingSendsApplicationLifecycle { XCTestExpectation* engineStartedExpectation = [self expectationWithDescription:@"Engine started"]; // Let the engine finish booting (at the end of which the channels are properly set-up) before diff --git a/engine/src/flutter/testing/scenario_app/run_ios_tests.sh b/engine/src/flutter/testing/scenario_app/run_ios_tests.sh index 225f88e977..351b2c0e7e 100755 --- a/engine/src/flutter/testing/scenario_app/run_ios_tests.sh +++ b/engine/src/flutter/testing/scenario_app/run_ios_tests.sh @@ -33,9 +33,14 @@ if [[ $# -eq 1 ]]; then FLUTTER_ENGINE="$1" fi -cd ios/Scenarios -set -o pipefail && xcodebuild -sdk iphonesimulator \ - -scheme Scenarios \ - -destination 'platform=iOS Simulator,name=iPhone 8' \ - test \ - FLUTTER_ENGINE="$FLUTTER_ENGINE" +echo "iOS Scenarios tests currently disabled due to flakiness" +echo "See: https://github.com/flutter/flutter/issues/61620" + +# TODO(cbracken): re-enable when +# https://github.com/flutter/flutter/issues/61620 is fixed. +# cd ios/Scenarios +# set -o pipefail && xcodebuild -sdk iphonesimulator \ +# -scheme Scenarios \ +# -destination 'platform=iOS Simulator,name=iPhone 8' \ +# test \ +# FLUTTER_ENGINE="$FLUTTER_ENGINE"