diff --git a/preprocess/src/androidTest/java/com/cloudinary/android/preprocess/PreprocessTest.java b/preprocess/src/androidTest/java/com/cloudinary/android/preprocess/PreprocessTest.java index 9e7240eb..7fced0b3 100644 --- a/preprocess/src/androidTest/java/com/cloudinary/android/preprocess/PreprocessTest.java +++ b/preprocess/src/androidTest/java/com/cloudinary/android/preprocess/PreprocessTest.java @@ -258,8 +258,6 @@ public Boolean call() { MediaManager.get().unregisterCallback(statefulCallback); } - // TODO: Fix transcoding tests in travis - @Ignore @Test public void testTranscode() throws IOException, PreprocessException { Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); @@ -273,7 +271,7 @@ public void testTranscode() throws IOException, PreprocessException { parameters.setHeight(720); parameters.setKeyFramesInterval(3); parameters.setTargetAudioBitrateKbps(128); - parameters.setTargetVideoBitrateKbps((int) (3.3 * 1024 * 1024)); + parameters.setTargetVideoBitrateKbps((3 * 1024 * 1024)); Uri outputVideoUri = new Transcode(parameters).execute(context, videoUri); File targetVideoFile = new File(outputVideoUri.getPath()); @@ -281,8 +279,6 @@ public void testTranscode() throws IOException, PreprocessException { Assert.assertTrue(targetVideoFile.length() > 0); } - // TODO: Fix transcoding tests in travis - @Ignore @Test public void testVideoChain() throws IOException, PreprocessException, PayloadNotFoundException { Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); @@ -296,7 +292,7 @@ public void testVideoChain() throws IOException, PreprocessException, PayloadNot parameters.setHeight(720); parameters.setKeyFramesInterval(3); parameters.setTargetAudioBitrateKbps(128); - parameters.setTargetVideoBitrateKbps((int) (3.3 * 1024 * 1024)); + parameters.setTargetVideoBitrateKbps( (3 * 1024 * 1024)); VideoPreprocessChain chain = VideoPreprocessChain.videoTranscodingChain(parameters); String outputVideoPath = chain.execute(context, payload); diff --git a/sample/src/androidTest/java/cloudinary/android/sample/UploadWidgetTest.java b/sample/src/androidTest/java/cloudinary/android/sample/UploadWidgetTest.java index f5621b9e..19f11f1b 100644 --- a/sample/src/androidTest/java/cloudinary/android/sample/UploadWidgetTest.java +++ b/sample/src/androidTest/java/cloudinary/android/sample/UploadWidgetTest.java @@ -38,8 +38,6 @@ public static void setup() throws IOException { @Rule public IntentsTestRule intentsTestRule = new IntentsTestRule<>(MainActivity.class); - // TODO: Fix UI tests for travis - @Ignore("Not supported by Travis") @Test public void testUploadWidget() { UploadWidget.startActivity(intentsTestRule.getActivity(),