From 4ef1fe4434f4357e208e5e8191f6ea5ca8f355b5 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 22 Feb 2023 18:46:08 -0800 Subject: [PATCH] Work-around for channels flake (#121261) --- .../channels/integration_test/main_test.dart | 5 ++++- packages/flutter/lib/src/foundation/binding.dart | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dev/integration_tests/channels/integration_test/main_test.dart b/dev/integration_tests/channels/integration_test/main_test.dart index 745bff3c99..2ec03ce92e 100644 --- a/dev/integration_tests/channels/integration_test/main_test.dart +++ b/dev/integration_tests/channels/integration_test/main_test.dart @@ -24,7 +24,10 @@ void main() { while (getStatus(tester) == 'ok') { step++; print('>> Tapping for step $step...'); - await tester.tap(stepButton); + // TODO(goderbauer): Setting the pointer ID to something large to avoid + // that the test events clash with ghost events from the device to + // further investigate https://github.com/flutter/flutter/issues/116663. + await tester.tap(stepButton, pointer: 500 + step); await tester.pump(); expect(statusField, findsNothing); diff --git a/packages/flutter/lib/src/foundation/binding.dart b/packages/flutter/lib/src/foundation/binding.dart index c7fce102a7..f4dd874f04 100644 --- a/packages/flutter/lib/src/foundation/binding.dart +++ b/packages/flutter/lib/src/foundation/binding.dart @@ -146,7 +146,7 @@ abstract class BindingBase { return true; }()); - assert(_debugInitializedType == null); + assert(_debugInitializedType == null, 'Binding is already initialized to $_debugInitializedType'); initInstances(); assert(_debugInitializedType != null);