Skip to content
Commit fdbbae9f authored by Robert Horvath's avatar Robert Horvath
Browse files

Call #clearSettingsProvider in PowerManagerServiceTest

Add calls to FakeSettingsProvider.clearSettingsProvider in setUp and
tearDown.

While PowerManagerServiceTest uses FakeSettingsProvider to
interact with a fake version of Settings and stay independent of system
state, this does not work if run together with other tests that do
access the real Settings, as Settings caches the first ContentProvider
it sees in the process.

Test: atest com.android.server.power.PowerManagerServiceTest
Bug: 151114486
Change-Id: I04d11cfcaef89dc1832a5f57af21c815e7861d11
parent 711ba268
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment