提交 77ff87e2 编写于 作者: L ling990

modify testcases Signed-off-by: ling990 <liling96@huawei.com>

Signed-off-by: Nling990 <ling990@qq.com>
上级 205a0dc3
...@@ -239,7 +239,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -239,7 +239,7 @@ describe('VideoDecoderReliCallbackTest', function () {
console.info(`case start callback`); console.info(`case start callback`);
printError(err, expectFail); printError(err, expectFail);
if (mySteps[0] == DECODE_STEP.FLUSH) { if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500; timeDelay = 50;
} }
setTimeout(() => { setTimeout(() => {
toNextStep(mySteps, done); toNextStep(mySteps, done);
......
...@@ -243,7 +243,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -243,7 +243,7 @@ describe('VideoDecoderReliPromiseTest', function () {
videoDecodeProcessor.start().then(() => { videoDecodeProcessor.start().then(() => {
console.info(`case start success`); console.info(`case start success`);
if (mySteps[0] == DECODE_STEP.FLUSH) { if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500; timeDelay = 50;
} }
setTimeout(() => { setTimeout(() => {
toNextStep(mySteps, done); toNextStep(mySteps, done);
......
...@@ -239,7 +239,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -239,7 +239,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
console.info(`case start callback`); console.info(`case start callback`);
printError(err, expectFail); printError(err, expectFail);
if (mySteps[0] == DECODE_STEP.FLUSH) { if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500; timeDelay = 50;
} }
setTimeout(() => { setTimeout(() => {
toNextStep(mySteps, done); toNextStep(mySteps, done);
......
...@@ -244,7 +244,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -244,7 +244,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
videoDecodeProcessor.start().then(() => { videoDecodeProcessor.start().then(() => {
console.info(`case start success`); console.info(`case start success`);
if (mySteps[0] == DECODE_STEP.FLUSH) { if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500; timeDelay = 50;
} }
setTimeout(() => { setTimeout(() => {
toNextStep(mySteps, done); toNextStep(mySteps, done);
......
...@@ -206,6 +206,7 @@ describe('videoSoftwareEncoderFuncPromise', function () { ...@@ -206,6 +206,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
} }
} else { } else {
console.info('not last frame, continue'); console.info('not last frame, continue');
writeFile(outputObject.data, outputObject.length);
videoEncodeProcessor.freeOutputBuffer(outputObject).then(() => { videoEncodeProcessor.freeOutputBuffer(outputObject).then(() => {
console.info('release output success'); console.info('release output success');
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册