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() {
tester.tap(find.text('Light'));
tester.pump();
tester.pump(const Duration(seconds: 1)); // Wait until it's changed.
});
}, skip: true);
}
......@@ -36,13 +36,14 @@ typedef Future<Null> WidgetTesterCallback(WidgetTester widgetTester);
/// expect(tester, hasWidget(find.text('Success')));
/// });
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();
WidgetTester tester = new WidgetTester._(binding);
group('-', () {
setUp(binding.preTest);
test(description, () => binding.runTest(() => callback(tester)));
test(description, () => binding.runTest(() => callback(tester)), skip: skip);
tearDown(binding.postTest);
}, 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