From 04ef20177ca24b77ca207e14397766196425cb4e Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 3 Jan 2019 23:58:46 -0500 Subject: Wrap full image url in try catch, resolves #1307 --- .../com/pitchedapps/frost/facebook/requests/FbFullImageTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/src/test/kotlin/com/pitchedapps') 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) } -- cgit v1.2.3