Work-around for channels flake (#121261)

This commit is contained in:
Michael Goderbauer 2023-02-22 18:46:08 -08:00 committed by GitHub
parent 1737233567
commit 4ef1fe4434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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);

View file

@ -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);