Skip to content

Commit cc1c70b

Browse files
committed
test: Fix MessagesTest inline with 8.12.0
1 parent b375833 commit cc1c70b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/kotlin/com/vonage/client/kt/MessagesTest.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,17 @@ class MessagesTest : AbstractTest() {
235235
fun `send Viber video`() {
236236
val duration = 23
237237
val fileSize = 7
238-
val ttl = 90 // TODO fix in Java SDK
238+
val ttl = 90
239239
val thumbUrl = "https://example.com/file1.jpg"
240240
testSend(videoBody(viberChannel,
241241
captionMap + mapOf("thumb_url" to thumbUrl)) + mapOf(viberChannel to mapOf(
242242
"category" to "transaction",
243243
"duration" to duration,
244+
"ttl" to ttl,
244245
"file_size" to fileSize
245246
)), viberVideo {
246-
from(altNumber); to(toNumber); url(videoUrl); caption(caption);
247-
category(Category.TRANSACTION); duration(duration)
247+
from(altNumber); to(toNumber); url(videoUrl); caption(caption)
248+
category(Category.TRANSACTION); duration(duration); ttl(ttl)
248249
fileSize(fileSize); thumbUrl(thumbUrl)
249250
}
250251
)
@@ -398,7 +399,7 @@ class MessagesTest : AbstractTest() {
398399
val params = whatsappCustomBody(mapOf(
399400
"type" to "location",
400401
"location" to mapOf(
401-
"lat" to latitude, "long" to longitude,
402+
"latitude" to latitude, "longitude" to longitude,
402403
"name" to name, "address" to address
403404
)
404405
)

0 commit comments

Comments
 (0)