Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47514273 authored by Jeff Chen's avatar Jeff Chen
Browse files

Fix DeviceProvisioningRepositoryImplTest.

Clear context before test.

Bug: 442631210
Test: DeviceProvisioningRepositoryImplTest
Flag: TEST_ONLY
Change-Id: I502c69b193a03e1c5ea0b939e8b20f64cb9cddb5
parent 5ee41a44
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -91,6 +91,11 @@ class DeviceProvisioningRepositoryImplTest : SysuiTestCase() {
    fun getProvisionedTimestamp_provisionedEarlierWithoutTracking_isUnknown() =
        testScope.runTest {
            whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(true)
            mContext
                .getSharedPreferences(mContext.packageName, Context.MODE_PRIVATE)
                .edit()
                .clear()
                .apply()
            underTest.start()

            val timestamp = underTest.getProvisionedTimestamp()