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
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user