Always use the custom url, even if no Matrix gateway is detected.
This commit is contained in:
@@ -29,6 +29,7 @@ import io.element.android.libraries.pushproviders.api.CurrentUserPushConfig
|
||||
import io.element.android.libraries.pushproviders.api.Distributor
|
||||
import io.element.android.libraries.pushproviders.api.PushProvider
|
||||
import io.element.android.libraries.pushproviders.test.FakePushProvider
|
||||
import io.element.android.libraries.pushproviders.test.aCurrentUserPushConfig
|
||||
import io.element.android.libraries.pushstore.api.UserPushStoreFactory
|
||||
import io.element.android.libraries.pushstore.test.userpushstore.FakeUserPushStore
|
||||
import io.element.android.libraries.pushstore.test.userpushstore.FakeUserPushStoreFactory
|
||||
@@ -57,10 +58,7 @@ class DefaultPushServiceTest {
|
||||
|
||||
@Test
|
||||
fun `test push ok`() = runTest {
|
||||
val aConfig = CurrentUserPushConfig(
|
||||
url = "aUrl",
|
||||
pushKey = "aPushKey",
|
||||
)
|
||||
val aConfig = aCurrentUserPushConfig()
|
||||
val testPushResult = lambdaRecorder<CurrentUserPushConfig, Unit> { }
|
||||
val aPushProvider = FakePushProvider(
|
||||
currentUserPushConfig = aConfig
|
||||
|
||||
@@ -18,7 +18,7 @@ package io.element.android.libraries.push.impl.test
|
||||
|
||||
import io.element.android.appconfig.PushConfig
|
||||
import io.element.android.libraries.push.impl.pushgateway.PushGatewayNotifyRequest
|
||||
import io.element.android.libraries.pushproviders.api.CurrentUserPushConfig
|
||||
import io.element.android.libraries.pushproviders.test.aCurrentUserPushConfig
|
||||
import io.element.android.tests.testutils.lambda.lambdaRecorder
|
||||
import io.element.android.tests.testutils.lambda.value
|
||||
import kotlinx.coroutines.test.runTest
|
||||
@@ -33,10 +33,7 @@ class DefaultTestPushTest {
|
||||
executeResult = executeResult,
|
||||
)
|
||||
)
|
||||
val aConfig = CurrentUserPushConfig(
|
||||
url = "aUrl",
|
||||
pushKey = "aPushKey",
|
||||
)
|
||||
val aConfig = aCurrentUserPushConfig()
|
||||
defaultTestPush.execute(aConfig)
|
||||
executeResult.assertions()
|
||||
.isCalledOnce()
|
||||
|
||||
Reference in New Issue
Block a user