未验证 提交 7c25dd14 编写于 作者: F FULIZHONG 提交者: Gitee

add sleep time in audiorecorder Signed-off-by: FULIZHONG<fulizhong1@huawei.com>

上级 25f7f937
...@@ -32,8 +32,7 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -32,8 +32,7 @@ describe('RecorderLocalTestAudioAPI', function () {
const SOURCE_TYPE = 1; const SOURCE_TYPE = 1;
const ENCORDER_AACLC = 3; const ENCORDER_AACLC = 3;
const CHANNEL_TWO = 2; const CHANNEL_TWO = 2;
const RECORDER_TIME = 3000; const RECORDER_TIME = 1000;
const PAUSE_TIME = 1000;
let fdPath; let fdPath;
let fileAsset; let fileAsset;
let fdNumber; let fdNumber;
...@@ -120,7 +119,6 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -120,7 +119,6 @@ describe('RecorderLocalTestAudioAPI', function () {
audioRecorder.on('pause', () => { audioRecorder.on('pause', () => {
console.info('setCallback pause() case callback is called'); console.info('setCallback pause() case callback is called');
sleep(PAUSE_TIME);
mySteps.shift(); mySteps.shift();
nextStep(mySteps,done); nextStep(mySteps,done);
}); });
......
...@@ -31,7 +31,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -31,7 +31,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
const RESET_STATE = 6; const RESET_STATE = 6;
const RELEASE_STATE = 7; const RELEASE_STATE = 7;
const ERROR_STATE = 8; const ERROR_STATE = 8;
const RECORDER_TIME = 3000; const RECORDER_TIME = 1000;
const CHANNEL_ONE = 1; const CHANNEL_ONE = 1;
const CHANNEL_TWO = 2; const CHANNEL_TWO = 2;
const FORMAT_MP4 = 2; const FORMAT_MP4 = 2;
...@@ -209,7 +209,6 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -209,7 +209,6 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioRecorder.on('pause', () => { audioRecorder.on('pause', () => {
console.info('setCallback pause() case callback is called'); console.info('setCallback pause() case callback is called');
sleep(RECORDER_TIME);
mySteps.shift(); mySteps.shift();
nextStep(mySteps,done); nextStep(mySteps,done);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册