Skip to content

Can't test widgets that contain the Roll widget, because pumpAndSettle times out. #2

@cuberob

Description

@cuberob

Tests are failing for widgets that rely on the Roll widget, as using it causes pumpAndSettle to time out.

Note that I added the following code to my tests to make sure accelerometer data is 'available':

setUp(() {
    const MethodChannel('dev.fluttercommunity.plus/sensors/accelerometer')
        .setMockMethodCallHandler((MethodCall methodCall) async {
      if (methodCall.method == 'listen') {
        return <String, dynamic>{};
      }
      return null;
    });
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions