From 3aa44ba16e52ceaf37dd28a8075b302c42785526 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 27 Sep 2018 19:56:25 -0400 Subject: Fix more lints --- app/src/test/kotlin/com/pitchedapps/frost/MiscTest.kt | 10 +++++----- .../com/pitchedapps/frost/facebook/requests/FbFullImageTest.kt | 3 --- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'app/src/test/kotlin') diff --git a/app/src/test/kotlin/com/pitchedapps/frost/MiscTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/MiscTest.kt index 2be743a3..d730b933 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/MiscTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/MiscTest.kt @@ -1,7 +1,6 @@ package com.pitchedapps.frost import com.pitchedapps.frost.facebook.requests.zip -import com.pitchedapps.frost.injectors.CssHider import org.junit.Test import kotlin.test.assertTrue @@ -19,10 +18,11 @@ class MiscTest { fun zip() { val now = System.currentTimeMillis() val base = 1 - val data = (0..15).map { Math.random() + base }.toTypedArray().zip( - List::toLongArray, - { Thread.sleep((it * 1000).toLong()); System.currentTimeMillis() - now } - ).blockingGet() + val data: LongArray = (0..15).map { Math.random() + base } + .toTypedArray().zip(List::toLongArray) { + Thread.sleep((it * 1000).toLong()) + System.currentTimeMillis() - now + }.blockingGet() println(data.contentToString()) assertTrue(data.all { it >= base * 1000 && it < base * 1000 * 5 }, "zip did not seem to work on different threads") 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 291637c6..c4e51d41 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 @@ -1,13 +1,10 @@ package com.pitchedapps.frost.facebook.requests -import com.pitchedapps.frost.facebook.requests.getFullSizedImage -import com.pitchedapps.frost.facebook.requests.getFullSizedImageUrl import com.pitchedapps.frost.internal.COOKIE import com.pitchedapps.frost.internal.authDependent import org.junit.BeforeClass import org.junit.Test import kotlin.test.assertNotNull -import kotlin.test.assertTrue /** * Created by Allan Wang on 12/04/18. -- cgit v1.2.3