Skip to content

Commit

Permalink
wip tesr
Browse files Browse the repository at this point in the history
  • Loading branch information
ttypic committed Oct 4, 2024
1 parent 79114e8 commit 90a743c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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 logcat && 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 @@ -1447,7 +1448,7 @@ public void Realtime_push_interface() throws Exception {
key = "madeup";
}});
realtime.setAndroidContext(getContext());
assertInstanceOf(LocalDevice.class, realtime.push.getLocalDevice());
// assertInstanceOf(LocalDevice.class, realtime.push.getLocalDevice());
assertInstanceOf(Push.class, realtime.push);
assertInstanceOf(PushChannel.class, realtime.channels.get("test").push);
}
Expand Down

0 comments on commit 90a743c

Please sign in to comment.