提交 d24e1ba6 编写于 作者: L ling990

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

Signed-off-by: Nling990 <liling96@huawei.com>
上级 a016d3d3
...@@ -243,12 +243,11 @@ describe('AudioDecoderFunc', function () { ...@@ -243,12 +243,11 @@ describe('AudioDecoderFunc', function () {
ES_LENGTH = 1500; ES_LENGTH = 1500;
}) })
afterEach(function() { afterEach(async function() {
console.info('afterEach case'); console.info('afterEach case');
if (audioDecodeProcessor != null){ if (audioDecodeProcessor != null) {
audioDecodeProcessor = null audioDecodeProcessor = null;
} }
wait(2000);
}) })
afterAll(function() { afterAll(function() {
...@@ -311,7 +310,7 @@ describe('AudioDecoderFunc', function () { ...@@ -311,7 +310,7 @@ describe('AudioDecoderFunc', function () {
expect(err).assertUndefined(); expect(err).assertUndefined();
console.info("case reset success"); console.info("case reset success");
if (needrelease) { if (needrelease) {
audioDecodeProcessor = null audioDecodeProcessor = null;
} }
}) })
} }
...@@ -333,7 +332,6 @@ describe('AudioDecoderFunc', function () { ...@@ -333,7 +332,6 @@ describe('AudioDecoderFunc', function () {
audioDecodeProcessor.reset((err) => { audioDecodeProcessor.reset((err) => {
expect(err).assertUndefined(); expect(err).assertUndefined();
console.log("case reset success"); console.log("case reset success");
audioDecodeProcessor = null;
done(); done();
}) })
}) })
......
...@@ -243,7 +243,12 @@ describe('AudioDecoderFunc', function () { ...@@ -243,7 +243,12 @@ describe('AudioDecoderFunc', function () {
afterEach(function() { afterEach(function() {
console.info('afterEach case'); console.info('afterEach case');
wait(2000); if (audioDecodeProcessor != null){
audioDecodeProcessor.release().then(() => {
console.info('audioDecodeProcessor release success');
audioDecodeProcessor = null;
})
}
}) })
afterAll(function() { afterAll(function() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册