Increased ram, cores and heap-size for API level 30 emulator for better test performance.

* Improved test performance.
This commit is contained in:
MohitMaliFtechiz 2024-04-10 15:10:27 +05:30
parent f90d92e1e4
commit 00580d5afa
3 changed files with 7 additions and 6 deletions

View File

@ -47,12 +47,12 @@ jobs:
arch: x86_64
profile: pixel_2
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
ram-size: ${{ matrix.api-level == 33 && '6144M' || '4096M' }}
cores: ${{ matrix.api-level == 33 && 4 || 2 }}
disk-size: '14G'
ram-size: ${{ matrix.api-level != 24 && '6144M' || '4096M' }}
cores: ${{ matrix.api-level != 24 && 4 || 2 }}
disk-size: ${{ matrix.api-level != 24 && '20G' || '14G' }}
sdcard-path-or-size: ${{ matrix.api-level != 33 && '1000M' || '4096M' }}
disable-animations: true
heap-size: ${{ matrix.api-level == 33 && '512M' || '' }}
heap-size: ${{ matrix.api-level != 24 && '512M' || '' }}
channel: canary
script: bash contrib/instrumentation.sh

View File

@ -130,6 +130,7 @@ class LibraryRobot : BaseRobot() {
}
private fun clickOnDeleteZimFile() {
pauseForBetterTestPerformance()
onView(withText("DELETE")).perform(click())
}

View File

@ -76,7 +76,7 @@ class NavigationHistoryRobot : BaseRobot() {
}
fun assertBackwardNavigationHistoryDialogDisplayed() {
pauseForBetterTestPerformance()
BaristaSleepInteractions.sleep(TestUtils.TEST_PAUSE_MS.toLong())
isVisible(TextId(R.string.backward_history))
}
@ -86,7 +86,7 @@ class NavigationHistoryRobot : BaseRobot() {
}
fun assertForwardNavigationHistoryDialogDisplayed() {
pauseForBetterTestPerformance()
BaristaSleepInteractions.sleep(TestUtils.TEST_PAUSE_MS.toLong())
isVisible(TextId(R.string.forward_history))
}