diff options
author | Allan Wang <me@allanwang.ca> | 2019-01-03 23:58:46 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-01-03 23:58:46 -0500 |
commit | 04ef20177ca24b77ca207e14397766196425cb4e (patch) | |
tree | 6523039e02657daadb4e0f2a20f5f9cd3ad3344c /app/src/test | |
parent | a8c734070c67d84e10f617602467339f113521b4 (diff) | |
download | frost-04ef20177ca24b77ca207e14397766196425cb4e.tar.gz frost-04ef20177ca24b77ca207e14397766196425cb4e.tar.bz2 frost-04ef20177ca24b77ca207e14397766196425cb4e.zip |
Wrap full image url in try catch, resolves #1307
Diffstat (limited to 'app/src/test')
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbFullImageTest.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbFullImageTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbFullImageTest.kt index 4eb90d74..cb8dd5e1 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbFullImageTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbFullImageTest.kt @@ -18,6 +18,7 @@ package com.pitchedapps.frost.facebook.requests import com.pitchedapps.frost.internal.COOKIE import com.pitchedapps.frost.internal.authDependent +import kotlinx.coroutines.runBlocking import org.junit.BeforeClass import org.junit.Test import kotlin.test.assertNotNull @@ -38,7 +39,9 @@ class FbFullImageTest { @Test fun getFullImage() { val url = "https://touch.facebook.com/photo/view_full_size/?fbid=107368839645039" - val result = COOKIE.getFullSizedImageUrl(url).blockingGet() + val result = runBlocking { + COOKIE.getFullSizedImageUrl(url) + } assertNotNull(result) println(result) } |