Skip to content

Commit f5e33ca

Browse files
author
Maxime NATUREL
committed
Fix unit tests
1 parent f5d3bcb commit f5e33ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/session/room/location/DefaultLocationSharingServiceTest.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ internal class DefaultLocationSharingServiceTest {
163163
val error = Throwable()
164164
coEvery { stopLiveLocationShareTask.execute(any()) } returns UpdateLiveLocationShareResult.Failure(error)
165165

166-
val result = defaultLocationSharingService.startLiveLocationShare(A_TIMEOUT)
166+
val result = defaultLocationSharingService.startLiveLocationShare(A_TIMEOUT, A_DESCRIPTION)
167167

168168
result shouldBeEqualTo UpdateLiveLocationShareResult.Failure(error)
169169
val expectedCheckExistingParams = CheckIfExistingActiveLiveTask.Params(
@@ -181,7 +181,7 @@ internal class DefaultLocationSharingServiceTest {
181181
coEvery { checkIfExistingActiveLiveTask.execute(any()) } returns false
182182
coEvery { startLiveLocationShareTask.execute(any()) } returns UpdateLiveLocationShareResult.Success(AN_EVENT_ID)
183183

184-
val result = defaultLocationSharingService.startLiveLocationShare(A_TIMEOUT)
184+
val result = defaultLocationSharingService.startLiveLocationShare(A_TIMEOUT, A_DESCRIPTION)
185185

186186
result shouldBeEqualTo UpdateLiveLocationShareResult.Success(AN_EVENT_ID)
187187
val expectedCheckExistingParams = CheckIfExistingActiveLiveTask.Params(
@@ -190,7 +190,8 @@ internal class DefaultLocationSharingServiceTest {
190190
coVerify { checkIfExistingActiveLiveTask.execute(expectedCheckExistingParams) }
191191
val expectedStartParams = StartLiveLocationShareTask.Params(
192192
roomId = A_ROOM_ID,
193-
timeoutMillis = A_TIMEOUT
193+
timeoutMillis = A_TIMEOUT,
194+
description = A_DESCRIPTION
194195
)
195196
coVerify { startLiveLocationShareTask.execute(expectedStartParams) }
196197
}

0 commit comments

Comments
 (0)