Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daeda88 committed Sep 26, 2023
1 parent 8625a27 commit 1894f16
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
build:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
runs-on: macos-latest
runs-on: macos-13
strategy:
matrix:
api-level: [ 33 ]
Expand Down
8 changes: 8 additions & 0 deletions firebase-firestore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ kotlin {
Action {
useKarma {
useChromeHeadless()
// Explicitly specify Mocha here since it seems to be throwing random errors otherwise
useMocha {
timeout = "15s"
}
}
}
)
Expand All @@ -102,6 +106,10 @@ kotlin {
Action {
useKarma {
useChromeHeadless()
// Explicitly specify Mocha here since it seems to be throwing random errors otherwise
useMocha {
timeout = "15s"
}
}
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FirebaseFirestoreTest {
)

@BeforeTest
fun initializeFirebase() = runTest {
fun initializeFirebase() {
Firebase
.takeIf { Firebase.apps(context).isEmpty() }
?.apply {
Expand Down
20 changes: 10 additions & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ android.useAndroidX=true
kapt.use.worker.api=true
kotlin.code.style=official
kotlin.incremental.multiplatform=true
kotlin.js.compiler=both
kotlin.js.compiler=ir
kotlin.js.experimental.generateKotlinExternals=false
#kotlin.mpp.enableCompatibilityMetadataVariant=true
#kotlin.mpp.enableGranularSourceSetsMetadata=true
Expand All @@ -26,15 +26,15 @@ skipIosTarget=false
firebase-app.skipIosTests=false
# We are skipping auth ios tests due to an issue with keychain and simulator.
firebase-auth.skipIosTests=true
firebase-common.skipIosTests=true
firebase-config.skipIosTests=true
firebase-database.skipIosTests=true
firebase-firestore.skipIosTests=true
firebase-functions.skipIosTests=true
firebase-installations.skipIosTests=true
firebase-perf.skipIosTests=true
firebase-crashlytics.skipIosTests=true
firebase-storage.skipIosTests=true
firebase-common.skipIosTests=false
firebase-config.skipIosTests=false
firebase-database.skipIosTests=false
firebase-firestore.skipIosTests=false
firebase-functions.skipIosTests=false
firebase-installations.skipIosTests=false
firebase-perf.skipIosTests=false
firebase-crashlytics.skipIosTests=false
firebase-storage.skipIosTests=false

# We can have the functionality to skip js tests, due to compatibility issues.
firebase-app.skipJsTests=false
Expand Down

0 comments on commit 1894f16

Please sign in to comment.