Fix Task :matrix-sdk-android:compileKotlinCryptoDebugUnitTestKotlin FAILED

e: file:///home/runner/actions-runner/_work/element-android/element-android/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/session/pushers/DefaultPushersServiceTest.kt:55:5 No value passed for parameter 'homeServerCapabilitiesDataSource'
This commit is contained in:
Giom Foret 2023-10-10 14:11:38 +02:00
parent 747c81c687
commit 973246819a
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import kotlinx.coroutines.test.runTest
import org.junit.Test import org.junit.Test
import org.matrix.android.sdk.test.fakes.FakeAddPusherTask import org.matrix.android.sdk.test.fakes.FakeAddPusherTask
import org.matrix.android.sdk.test.fakes.FakeGetPushersTask import org.matrix.android.sdk.test.fakes.FakeGetPushersTask
import org.matrix.android.sdk.test.fakes.FakeHomeServerCapabilitiesDataSource
import org.matrix.android.sdk.test.fakes.FakeMonarchy import org.matrix.android.sdk.test.fakes.FakeMonarchy
import org.matrix.android.sdk.test.fakes.FakeRemovePusherTask import org.matrix.android.sdk.test.fakes.FakeRemovePusherTask
import org.matrix.android.sdk.test.fakes.FakeTaskExecutor import org.matrix.android.sdk.test.fakes.FakeTaskExecutor
@ -41,6 +42,7 @@ class DefaultPushersServiceTest {
private val togglePusherTask = FakeTogglePusherTask() private val togglePusherTask = FakeTogglePusherTask()
private val removePusherTask = FakeRemovePusherTask() private val removePusherTask = FakeRemovePusherTask()
private val taskExecutor = FakeTaskExecutor() private val taskExecutor = FakeTaskExecutor()
private val homeServerCapabilitiesDataSource = FakeHomeServerCapabilitiesDataSource()
private val pushersService = DefaultPushersService( private val pushersService = DefaultPushersService(
workManagerProvider.instance, workManagerProvider.instance,
@ -52,6 +54,7 @@ class DefaultPushersServiceTest {
togglePusherTask, togglePusherTask,
removePusherTask, removePusherTask,
taskExecutor.instance, taskExecutor.instance,
homeServerCapabilitiesDataSource.instance,
) )
@Test @Test