mirror of
https://github.com/samsonjs/media.git
synced 2026-04-13 12:35:48 +00:00
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
(cherry picked from commit 938d3c2e5b)
This commit is contained in:
parent
498123da68
commit
4fc36bafdd
1 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import android.content.Context;
|
|||
import android.net.Uri;
|
||||
import androidx.media3.common.Format;
|
||||
import androidx.media3.common.MediaItem;
|
||||
import androidx.media3.common.util.Util;
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import java.util.List;
|
||||
|
|
@ -109,6 +110,11 @@ public class TransformerEndToEndTest {
|
|||
|
||||
@Test
|
||||
public void videoEncoderFormatUnsupported_completesWithError() {
|
||||
// TODO(b/236943611): Re-enable this test after investigating flakiness.
|
||||
if (Util.SDK_INT == 31) {
|
||||
return;
|
||||
}
|
||||
|
||||
Transformer transformer =
|
||||
new Transformer.Builder(context)
|
||||
.setEncoderFactory(new VideoUnsupportedEncoderFactory(context))
|
||||
|
|
|
|||
Loading…
Reference in a new issue