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
This commit is contained in:
parent
531f03a369
commit
d9c63c1e87
@ -26,6 +26,7 @@ import androidx.test.core.app.ApplicationProvider;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.MediaItem;
|
||||
import com.google.android.exoplayer2.util.Util;
|
||||
import java.util.List;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@ -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…
x
Reference in New Issue
Block a user