mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Trying to fix flaky launcher tests
Test: run AddWorkspaceItemsTaskTest.kt Bug: 227650070 Change-Id: Ie093c5b13bdb4143829f82767fdeb208805f388a
This commit is contained in:
committed by
András Klöczl
parent
b399812c6e
commit
7b83486fe4
@@ -23,6 +23,7 @@ import com.android.launcher3.model.data.ItemInfo
|
||||
import com.android.launcher3.model.data.WorkspaceItemInfo
|
||||
import com.android.launcher3.util.Executors
|
||||
import com.android.launcher3.util.IntArray
|
||||
import com.android.launcher3.util.IntSet
|
||||
import com.android.launcher3.util.same
|
||||
import com.android.launcher3.util.eq
|
||||
import com.android.launcher3.util.any
|
||||
@@ -64,6 +65,7 @@ class AddWorkspaceItemsTaskTest : AbstractWorkspaceModelTest() {
|
||||
override fun setup() {
|
||||
super.setup()
|
||||
MockitoAnnotations.initMocks(this)
|
||||
whenever(mDataModelCallbacks.getPagesToBindSynchronously(any())).thenReturn(IntSet())
|
||||
Executors.MAIN_EXECUTOR.submit { mModelHelper.model.addCallbacks(mDataModelCallbacks) }
|
||||
.get()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user