Skip to content

Commit 36227d2

Browse files
committed
Fix tests
1 parent 10058a3 commit 36227d2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/channels/NotificationChannelsTest.kt

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ package io.element.android.libraries.push.impl.notifications.channels
1010
import android.os.Build
1111
import androidx.core.app.NotificationChannelCompat
1212
import androidx.core.app.NotificationManagerCompat
13-
import androidx.test.platform.app.InstrumentationRegistry
1413
import com.google.common.truth.Truth.assertThat
1514
import io.element.android.services.toolbox.test.strings.FakeStringProvider
1615
import io.mockk.every
@@ -65,7 +64,6 @@ class NotificationChannelsTest {
6564
private fun createNotificationChannels(
6665
notificationManager: NotificationManagerCompat = mockk(relaxed = true),
6766
) = DefaultNotificationChannels(
68-
context = InstrumentationRegistry.getInstrumentation().targetContext,
6967
notificationManager = notificationManager,
7068
stringProvider = FakeStringProvider(),
7169
)

libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/factories/DefaultNotificationCreatorTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,5 +331,5 @@ fun createNotificationCreator(
331331

332332
fun createNotificationChannels(): NotificationChannels {
333333
val context = RuntimeEnvironment.getApplication()
334-
return DefaultNotificationChannels(context, NotificationManagerCompat.from(context), FakeStringProvider(""))
334+
return DefaultNotificationChannels(NotificationManagerCompat.from(context), FakeStringProvider(""))
335335
}

0 commit comments

Comments
 (0)