diff options
| author | 2023-11-28 07:23:52 +0000 | |
|---|---|---|
| committer | 2023-11-28 07:23:52 +0000 | |
| commit | 0d9e49b3a7ce7c66751f79513f2221c1a577bfa9 (patch) | |
| tree | 54394b41325bf92ce8983bb907869a5d73374777 /api/api.go | |
| parent | 1f50aa3cbf58d917b903d1733cccb619fdfbd8b3 (diff) | |
Avoid unfinished MockitoSession if setUp has errors
If there is an exception before initializing mInputChannel,
the tearDown will meet NPE. Then finishMocking and
clearInlineMocks are skipped which will affect the next test.
Bug: 313490373
Test: SystemServicesTestRuleTest
Change-Id: I846a209d9cbdd1ccd18e05fa4e053e16218d3c82
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions