From 7c25dd1415cf793147854d2be4d260f022095f93 Mon Sep 17 00:00:00 2001 From: FULIZHONG Date: Thu, 26 May 2022 07:40:33 +0000 Subject: [PATCH] add sleep time in audiorecorder Signed-off-by: FULIZHONG --- .../src/main/js/test/RecorderLocalTestAudioAPI.test.js | 4 +--- .../src/main/js/test/RecorderLocalTestAudioFUNC.test.js | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js index da5629ef4..d7a6b5e22 100644 --- a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js +++ b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js @@ -32,8 +32,7 @@ describe('RecorderLocalTestAudioAPI', function () { const SOURCE_TYPE = 1; const ENCORDER_AACLC = 3; const CHANNEL_TWO = 2; - const RECORDER_TIME = 3000; - const PAUSE_TIME = 1000; + const RECORDER_TIME = 1000; let fdPath; let fileAsset; let fdNumber; @@ -120,7 +119,6 @@ describe('RecorderLocalTestAudioAPI', function () { audioRecorder.on('pause', () => { console.info('setCallback pause() case callback is called'); - sleep(PAUSE_TIME); mySteps.shift(); nextStep(mySteps,done); }); diff --git a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js index a96a6f02b..9690f3be8 100644 --- a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js +++ b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js @@ -31,7 +31,7 @@ describe('RecorderLocalTestAudioFUNC', function () { const RESET_STATE = 6; const RELEASE_STATE = 7; const ERROR_STATE = 8; - const RECORDER_TIME = 3000; + const RECORDER_TIME = 1000; const CHANNEL_ONE = 1; const CHANNEL_TWO = 2; const FORMAT_MP4 = 2; @@ -209,7 +209,6 @@ describe('RecorderLocalTestAudioFUNC', function () { audioRecorder.on('pause', () => { console.info('setCallback pause() case callback is called'); - sleep(RECORDER_TIME); mySteps.shift(); nextStep(mySteps,done); }); -- GitLab