Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62014402 authored by Wu-cheng Li's avatar Wu-cheng Li
Browse files

Increase the sleep time to fix testTakePicture.

One of the build needs 5 seconds for snapshot in low light. I don't want to
increase the sleep time, but this is what we have now.

bug:2141755
parent e265532f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public class MediaNames {
  
    public static final long PAUSE_WAIT_TIME = 3000;
    public static final long WAIT_TIME = 2000;
    public static final long WAIT_LONG = 4000;
    public static final long WAIT_SNAPSHOT_TIME = 5000;
  
    //Streaming Video
    public static final String VIDEO_HTTP3GP = "http://pvs.pv.com/jj/lipsync0.3gp";  
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ public class CameraTest extends ActivityInstrumentationTestCase<MediaFrameworkTe
            }
            mCamera.setPreviewCallback(null);
            mCamera.takePicture(mShutterCallback, mRawPictureCallback, mJpegPictureCallback);
            Thread.sleep(MediaNames.WAIT_LONG);
            Thread.sleep(MediaNames.WAIT_SNAPSHOT_TIME);
        } catch (Exception e) {
            Log.v(TAG, e.toString());
        }