Skip to content

Commit fdec410

Browse files
[TestConfigurationSample] Change API26 to API27 as 26 is not supported
1 parent 95c1e44 commit fdec410

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/TestConfigurationSample.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ jobs:
8181
~/.android/gradle/avd/dev30_aosp_x86_64_Pixel_2.*
8282
key: pixel2api30
8383

84-
- name: Cache pixel2api26 system image
84+
- name: Cache pixel2api27 system image
8585
uses: actions/cache@v2
8686
with:
87-
path: ~/.android/gradle/avd/dev26_aosp_x86_Pixel_2.*
88-
key: pixel2api26
87+
path: ~/.android/gradle/avd/dev27_aosp_x86_Pixel_2.*
88+
key: pixel2api27
8989

9090
- name: Cache nexus9api29 system image
9191
uses: actions/cache@v2
@@ -99,7 +99,7 @@ jobs:
9999

100100
- name: Run regression tests
101101
working-directory: ${{ env.SAMPLE_PATH }}
102-
run: ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
102+
run: ./gradlew -i pixel2api27DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi27 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
103103

104104
- name: Run large screen tests
105105
working-directory: ${{ env.SAMPLE_PATH }}

TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/MainActivityTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class MainActivityTests {
6565
*
6666
* See the Github Actions setup of this project for an example.
6767
*/
68-
@Test @TestDeviceApi26
69-
fun regressionTestKnownIssueApi26() {
68+
@Test @TestDeviceApi27
69+
fun regressionTestKnownIssueApi27() {
7070
// Add instrumented tests here
7171
runBlocking { delay(10000) }
7272
assertTrue(true)

TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/TestDeviceAnnotations.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package com.example.android.testing.testconfigurationsample
1818
/**
1919
* Annotate tests with this annotation when testing API 26 regression bugs.
2020
*/
21-
annotation class TestDeviceApi26
21+
annotation class TestDeviceApi27
2222

2323
/**
2424
* Annotate tests with this annotation when testing large-screen specific features.

0 commit comments

Comments
 (0)