提交 9e4cd7aa 编写于 作者: D durui

添加destroy

Signed-off-by: Ndurui <durui15@huawei.com>
上级 bf68ddca
......@@ -151,12 +151,6 @@ export default function AVSessionManager() {
}
}
await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done();
})
......@@ -192,12 +186,6 @@ export default function AVSessionManager() {
}
}
await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done();
})
......@@ -243,12 +231,6 @@ export default function AVSessionManager() {
}
await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done();
})
/* *
......@@ -286,12 +268,6 @@ export default function AVSessionManager() {
}
}
await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done();
})
/* *
......@@ -339,12 +315,6 @@ export default function AVSessionManager() {
}
}
await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done();
})
/* *
......@@ -390,12 +360,7 @@ export default function AVSessionManager() {
}
}
await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
await session.destroy();
done();
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册