From f2d4a1b89783be956a9c9d85082eeb5dcc0a9849 Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Sun, 1 Oct 2023 13:38:02 +0300 Subject: [PATCH] Increase wait time --- .../webrtc_android_sample_app/ScreenCaptureActivityTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc-android-sample-app/src/androidTest/java/io/antmedia/webrtc_android_sample_app/ScreenCaptureActivityTest.java b/webrtc-android-sample-app/src/androidTest/java/io/antmedia/webrtc_android_sample_app/ScreenCaptureActivityTest.java index f01b340d..46d626df 100644 --- a/webrtc-android-sample-app/src/androidTest/java/io/antmedia/webrtc_android_sample_app/ScreenCaptureActivityTest.java +++ b/webrtc-android-sample-app/src/androidTest/java/io/antmedia/webrtc_android_sample_app/ScreenCaptureActivityTest.java @@ -96,7 +96,7 @@ public void perform(ScreenCaptureActivity activity) { UiDevice device = UiDevice.getInstance(getInstrumentation()); onView(withId(R.id.rbScreen)).perform(click()); - UiObject2 button = device.wait(Until.findObject(By.text("Start now")), 10000); + UiObject2 button = device.wait(Until.findObject(By.text("Start now")), 100000); assertNotNull(button); button.click(); @@ -123,7 +123,7 @@ public void perform(ScreenCaptureActivity activity) { //FIXME: without this sleep, it's failing because onFinish event received but resources are not closed yet try { - Thread.sleep(3000); + Thread.sleep(30000); } catch (InterruptedException e) { throw new RuntimeException(e); }