Properly tear down services used by tests
These services were left running after the test method completed, and
since were foreground with associated notifications, those notifications
remained observable state to any test methods that ran after these in a
given test sequence. When those later tests also use notifications, ID
collision could induce spurious test failures in the later tests.
Fixes: 133246668
Test: atest CtsAppTestCases
Test: atest CtsAppTestCases:.NotificationManagerTest
Test: atest CtsAppTestCases:.ServiceTest
Change-Id: Id6b1c55634d2fcc6d49b87911f083a079a14b64d
1 file changed