Skip to content

Commit

Permalink
wip tesr
Browse files Browse the repository at this point in the history
  • Loading branch information
ttypic committed Oct 5, 2024
1 parent 79114e8 commit 88a18f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/emulate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ jobs:
api-level: ${{ matrix.android-api-level }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: |
./gradlew :android:connectedAndroidTest
adb logcat -d
# Print emulator logs if tests fails
script: ./gradlew :android:connectedAndroidTest || (adb -d logcat System.out:I *:S && exit 1)

- uses: actions/upload-artifact@v3
if: always()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.content.IntentFilter;
import android.os.Build;
import android.preference.PreferenceManager;
import android.support.test.filters.SdkSuppress;
import android.support.test.runner.AndroidJUnit4;
import android.util.Log;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
Expand Down Expand Up @@ -981,8 +982,8 @@ protected void setUpMachineState(TestCase testCase) throws AblyException {

// RSH3d3
@Test
@SdkSuppress(minSdkVersion=21)
public void WaitingForNewPushDeviceDetails_on_GotPushDeviceDetails() throws Exception {
assumeTrue("Can only run on API Level 21 or newer because HttpURLConnection does not support PATCH", Build.VERSION.SDK_INT >= 21);
new UpdateRegistrationTest() {
@Override
protected void setUpMachineState(TestCase testCase) throws AblyException {
Expand Down Expand Up @@ -1441,6 +1442,7 @@ public void run() throws Exception {
}

@Test
@SdkSuppress(minSdkVersion = 21)
public void Realtime_push_interface() throws Exception {
AblyRealtime realtime = new AblyRealtime(new ClientOptions() {{
autoConnect = false;
Expand Down

0 comments on commit 88a18f8

Please sign in to comment.