Skip to content

Commit

Permalink
Fix OutOfMemoryError in tests (#100)
Browse files Browse the repository at this point in the history
* Try use-orchestrator?

* Activate SetUser tests

* Remove unused import
  • Loading branch information
pmerlet-at-didomi authored Jan 24, 2024
1 parent e0af95c commit 126faca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jobs:
gcloud firebase test android run --type instrumentation \
--app android/app/build/outputs/apk/debug/app-debug.apk \
--test android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--use-orchestrator \
--device model=MediumPhone.arm,version=33,locale=en,orientation=portrait \
--num-flaky-test-attempts=3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand All @@ -31,73 +30,62 @@ class UISetUserTest: BaseUITest() {
}

@Test
@Ignore
fun test_SetUserWithId() {
tapButton("setUserWithId")
Thread.sleep(2_000L)
assertText("setUserWithId-OK")
}

// TODO Tests are ignored because of a OutOfMemoryError happening only on Firebase, to be investigated

@Test
@Ignore
fun test_SetUserWithIdAndSetupUI() {
tapButton("setUserWithIdAndSetupUI")
Thread.sleep(2_000L)
assertText("setUserWithIdAndSetupUI-OK")
}

@Test
@Ignore
fun test_SetUserWithHashAuth() {
tapButton("setUserWithHashAuth")
Thread.sleep(2_000L)
assertText("setUserWithHashAuth-OK")
}

@Test
@Ignore
fun test_SetUserWithHashAuthAndSetupUI() {
tapButton("setUserWithHashAuthAndSetupUI")
Thread.sleep(2_000L)
assertText("setUserWithHashAuthAndSetupUI-OK")
}

@Test
@Ignore
fun test_SetUserWithHashAuthWithSaltAndExpiration() {
tapButton("setUserWithHashAuthWithSaltAndExpiration")
Thread.sleep(2_000L)
assertText("setUserWithHashAuthWithSaltAndExpiration-OK")
}

@Test
@Ignore
fun test_SetUserWithHashAuthWithSaltAndExpirationAndSetupUI() {
tapButton("setUserWithHashAuthWithSaltAndExpirationAndSetupUI")
Thread.sleep(2_000L)
assertText("setUserWithHashAuthWithSaltAndExpirationAndSetupUI-OK")
}

@Test
@Ignore
fun test_SetUserWithEncryptionAuth() {
tapButton("setUserWithEncryptionAuth")
Thread.sleep(2_000L)
assertText("setUserWithEncryptionAuth-OK")
}

@Test
@Ignore
fun test_SetUserWithEncryptionAuthAndSetupUI() {
tapButton("setUserWithEncryptionAuthAndSetupUI")
Thread.sleep(2_000L)
assertText("setUserWithEncryptionAuthAndSetupUI-OK")
}

@Test
@Ignore
fun test_SetUserWithEncryptionAuthWithExpiration() {
tapButton("setUserWithEncryptionAuthWithExpiration")
Thread.sleep(2_000L)
Expand All @@ -108,7 +96,6 @@ class UISetUserTest: BaseUITest() {
}

@Test
@Ignore
fun test_SetUserWithEncryptionAuthWithExpirationAndSetupUI() {
tapButton("setUserWithEncryptionAuthWithExpirationAndSetupUI")
Thread.sleep(2_000L)
Expand Down

0 comments on commit 126faca

Please sign in to comment.