Commit 8da98105 authored by Adam Barth's avatar Adam Barth Committed by Ian Hickson

Skip the gallery smoke test (#3736)

This test hangs occationally on the bots and the bots aren't smart enough to
recover, which means the whole project gets blocked.

Filed #3735 about the hang.
parent 61c00373
...@@ -94,5 +94,5 @@ void main() { ...@@ -94,5 +94,5 @@ void main() {
tester.tap(find.text('Light')); tester.tap(find.text('Light'));
tester.pump(); tester.pump();
tester.pump(const Duration(seconds: 1)); // Wait until it's changed. tester.pump(const Duration(seconds: 1)); // Wait until it's changed.
}); }, skip: true);
} }
...@@ -36,13 +36,14 @@ typedef Future<Null> WidgetTesterCallback(WidgetTester widgetTester); ...@@ -36,13 +36,14 @@ typedef Future<Null> WidgetTesterCallback(WidgetTester widgetTester);
/// expect(tester, hasWidget(find.text('Success'))); /// expect(tester, hasWidget(find.text('Success')));
/// }); /// });
void testWidgets(String description, WidgetTesterCallback callback, { void testWidgets(String description, WidgetTesterCallback callback, {
Timeout timeout: const Timeout(const Duration(seconds: 5)) Timeout timeout: const Timeout(const Duration(seconds: 5)),
bool skip
}) { }) {
TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized();
WidgetTester tester = new WidgetTester._(binding); WidgetTester tester = new WidgetTester._(binding);
group('-', () { group('-', () {
setUp(binding.preTest); setUp(binding.preTest);
test(description, () => binding.runTest(() => callback(tester))); test(description, () => binding.runTest(() => callback(tester)), skip: skip);
tearDown(binding.postTest); tearDown(binding.postTest);
}, timeout: timeout); }, timeout: timeout);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment