Skip to content

Commit ca18a49

Browse files
committed
Remove assemble to speed up CI for js tests & make runTest > 10sec
1 parent 4097460 commit ca18a49

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ jobs:
3939
run: npm install -g firebase-tools
4040
- name: Start Firebase emulator
4141
run: "firebase emulators:start --config=./test/firebase.json &"
42-
- name: Assemble
43-
run: ./gradlew assemble
4442
- name: Run JS Tests
4543
run: ./gradlew cleanTest jsTest
4644
- name: Upload JS test artifact

firebase-firestore/src/jsTest/kotlin/dev/gitlive/firebase/firestore/firestore.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ package dev.gitlive.firebase.firestore
66

77
import kotlinx.coroutines.CoroutineScope
88
import kotlinx.coroutines.test.runTest
9+
import kotlin.time.Duration.Companion.minutes
910

1011
actual val emulatorHost: String = "localhost"
1112

1213
actual val context: Any = Unit
1314

14-
actual fun runTest(test: suspend CoroutineScope.() -> Unit) = runTest { test() }
15+
actual fun runTest(test: suspend CoroutineScope.() -> Unit) = runTest(timeout = 5.minutes) { test() }
1516

1617
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
1718
actual annotation class IgnoreForAndroidUnitTest

0 commit comments

Comments
 (0)