Use RunListener to Clear inline mocks at the end of each test class.
Inline mocks are leaking activity contexts and accumulation of these activity contexts led to OOM that resulted in test failure. See https://github.com/mockito/mockito/issues/1614 for details on mockito caused memory leaks This change works for both soong and gradle builds. Bug: 378520480 Test: atest and android studio builds Flag: TEST_ONLY Change-Id: I4a50993621ea416a02a41dd2f9c330d1599f065c
Loading
Please register or sign in to comment