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

Commit e7620fb2 authored by Ang Li's avatar Ang Li
Browse files

Fix LightRevealScrimRepositoryTest on Robolectric.

The test was failing with "no instrumentation registered". Per the
accepted answer of this problem
(https://yaqs.corp.google.com/eng/q/8977167194139918336), we could use
`AndroidJUnit4` test runner.
Before this fix, we got http://ab/I36700010187829959.
With this CL, we got http://ab/I27200010186873167.

Test: atest -c SystemUiRoboTests (http://ab/I27200010186873167)
Change-Id: Iefc9c89c1bce5982b823dcc88ea450e341d09532
Merged-In: Iefc9c89c1bce5982b823dcc88ea450e341d09532
parent 657e69c9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@
package com.android.systemui.keyguard.data.repository

import android.graphics.Point
import android.testing.AndroidTestingRunner
import android.testing.TestableLooper
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import com.android.systemui.RoboPilotTest
import com.android.systemui.SysuiTestCase
@@ -47,7 +47,7 @@ import org.mockito.MockitoAnnotations
@SmallTest
@RoboPilotTest
@OptIn(ExperimentalCoroutinesApi::class)
@RunWith(AndroidTestingRunner::class)
@RunWith(AndroidJUnit4::class)
class LightRevealScrimRepositoryTest : SysuiTestCase() {
    private lateinit var fakeKeyguardRepository: FakeKeyguardRepository
    private lateinit var underTest: LightRevealScrimRepositoryImpl