commit | a09f5654e825d292b9a24839f88ba5bf4781d614 | [log] [tgz] |
---|---|---|
author | Sarah Chin <sarahchin@google.com> | Fri May 27 00:13:59 2022 -0700 |
committer | Sarah Chin <sarahchin@google.com> | Fri May 27 07:17:32 2022 +0000 |
tree | 1d597e580b3ed05cea0acaf89b16a62a34052a89 | |
parent | b623f3f19144b113c240256672d4dfdd01b7bac6 [diff] |
Restore static instances after test completes PhoneUtilsTest was using reflection to replace the static sPhones in PhoneFactory to run the test but did not restore the previous value after the test completed. This caused the mocked test phone to remain even after the test completed, causing NPEs and other weird behavior. Test: atest TeleServicesTest Bug: 228813515 Change-Id: I1bc6ac4fbf3206bce6741be187598a63798d7f1e