Skip to content

Flake in FlutterPluginAppLifeCycleDelegateTest testDidBecomeActive #67603

@dnfield

Description

@dnfield

Log:" https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8867036056203644432/+/steps/Host_Tests_for_ios_debug_sim/0/stdout#L45655_0

This flaked on a post submit making the tree red.

Relevant excerpt:

 2020-10-07 21:57:49.876158-0700 IosUnitTests[4467:618421] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSSet ocmock_replaced_setWithObjects:count:]: unrecognized selector sent to class 0x107324fb0'
 *** First throw call stack:
 (
 	0   CoreFoundation                      0x0000000107058bde __exceptionPreprocess + 350
 	1   libobjc.A.dylib                     0x00000001063c0b20 objc_exception_throw + 48
 	2   CoreFoundation                      0x0000000107079604 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132
 	3   CoreFoundation                      0x000000010705d7bc ___forwarding___ + 1436
 	4   CoreFoundation                      0x000000010705f6c8 _CF_forwarding_prep_0 + 120
 	5   CoreFoundation                      0x000000010705f95c __invoking___ + 140
 	6   CTest Case '-[FlutterPluginAppLifeCycleDelegateTest testDidBecomeActive]' passed (0.001 seconds).
 oreFoundation                      0x000000010705cd8f -[NSInvocation invoke] + 287
 	7   CoreFoundation                      0x000000010705d566 ___forwarding___ + 838
 	8   CoreFoundation                      0x000000010705f6c8 _CF_forwarding_prep_0 + 120
 	9   CoreFoundation                      0x000000010707f2f6 -[NSSet setByAddingObjectsFromSet:] + 710
 	10  DTXConnectionServices               0x00000001221690c2 -[DTXProxyChannel _allowedClassesForReturnValues] + 109
 	11  DTXConnectionServices               0x00000001221697ee __42-[DTXProxyChannel _sendInvocationMessage:]_block_invoke + 260
 	12  DTXConnectionServices               0x00000001221768d2 __51-[DTXChannel _scheduleMessage:tracker:withHandler:]_block_invoke.617 + 159
 	13  libdispatch.dylib                   0x0000000107e5a888 _dispatch_call_block_and_release + 12
 	14  libdispatch.dylib                   0x0000000107e5b7f9 _dispatch_client_callout + 8
 	15  libdispatch.dylib                   0x0000000107e61566 _dispatch_lane_serial_drain + 707
 	16  libdispatch.dylib                   0x0000000107e61f9c _dispatch_lane_invoke + 388
 	17  libdispatch.dylib                   0x0000000107e6c06c _dispatch_workloop_worker_thread + 626
 	18  libsystem_pthread.dylib             0x00007fff5141fa3d _pthread_wqthread + 290
 	19  libsystem_pthread.dylib             0x00007fff5141eb77 start_wqthread + 15
 )
 Test Case '-[FlutterPluginAppLifeCycleDelegateTest testDidEnterBackground]' started.
 libc++abi.dylib: terminating with uncaught exception of type NSException

@gaaclarke who added the test and I think has dealt with issues like this before with OCMock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.c: flakeTests that sometimes, but not always, incorrectly passengineflutter/engine related. See also e: labels.platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions