Skip to content

Commit d7afbfe

Browse files
committed
wip tesr
1 parent 79114e8 commit d7afbfe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/emulate.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
api-level: ${{ matrix.android-api-level }}
3636
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
3737
disable-animations: true
38-
script: |
39-
./gradlew :android:connectedAndroidTest
40-
adb logcat -d
38+
script: ./gradlew :android:connectedAndroidTest || adb logcat -d
4139

4240
- uses: actions/upload-artifact@v3
4341
if: always()

android/src/androidTest/java/io/ably/lib/test/android/AndroidPushTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.content.IntentFilter;
77
import android.os.Build;
88
import android.preference.PreferenceManager;
9+
import android.support.test.filters.SdkSuppress;
910
import android.support.test.runner.AndroidJUnit4;
1011
import android.util.Log;
1112
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
@@ -981,8 +982,8 @@ protected void setUpMachineState(TestCase testCase) throws AblyException {
981982

982983
// RSH3d3
983984
@Test
985+
@SdkSuppress(minSdkVersion=21)
984986
public void WaitingForNewPushDeviceDetails_on_GotPushDeviceDetails() throws Exception {
985-
assumeTrue("Can only run on API Level 21 or newer because HttpURLConnection does not support PATCH", Build.VERSION.SDK_INT >= 21);
986987
new UpdateRegistrationTest() {
987988
@Override
988989
protected void setUpMachineState(TestCase testCase) throws AblyException {

0 commit comments

Comments
 (0)