aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/test/kotlin')
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt
index 63c11bac..9fbb6069 100644
--- a/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt
+++ b/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt
@@ -14,7 +14,8 @@ class OfflineWebsiteTest {
@Test
fun basic() {
val countdown = CountDownLatch(1)
- OfflineWebsite(FB_URL_BASE, COOKIE, File("app/build/offline_test"))
+ val buildPath = if (File(".").parentFile?.name == "app") "build/offline_test" else "app/build/offline_test"
+ OfflineWebsite(FB_URL_BASE, COOKIE, File(buildPath))
.loadAndZip("test") {
println("Outcome $it")
countdown.countDown()