Commit 938d3c2e by hschlueter Committed by Ian Baker

Disable flaky transformer emulator test on API 31.

videoEncoderFormatUnsupported_completesWithError() has recently
been flaky on API 31 emulators on presubmit because a different
exception than the expected exception is thrown.
This disables it on those emulators to reduce testing noise
until the underlying problem is investigated and resolved.

PiperOrigin-RevId: 456765512
parent 1d2ad39a
...@@ -24,6 +24,7 @@ import android.content.Context; ...@@ -24,6 +24,7 @@ import android.content.Context;
import android.net.Uri; import android.net.Uri;
import androidx.media3.common.Format; import androidx.media3.common.Format;
import androidx.media3.common.MediaItem; import androidx.media3.common.MediaItem;
import androidx.media3.common.util.Util;
import androidx.test.core.app.ApplicationProvider; import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.ext.junit.runners.AndroidJUnit4;
import java.util.List; import java.util.List;
...@@ -109,6 +110,11 @@ public class TransformerEndToEndTest { ...@@ -109,6 +110,11 @@ public class TransformerEndToEndTest {
@Test @Test
public void videoEncoderFormatUnsupported_completesWithError() { public void videoEncoderFormatUnsupported_completesWithError() {
// TODO(b/236943611): Re-enable this test after investigating flakiness.
if (Util.SDK_INT == 31) {
return;
}
Transformer transformer = Transformer transformer =
new Transformer.Builder(context) new Transformer.Builder(context)
.setEncoderFactory(new VideoUnsupportedEncoderFactory(context)) .setEncoderFactory(new VideoUnsupportedEncoderFactory(context))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment