未验证 提交 380689db 编写于 作者: O openharmony_ci 提交者: Gitee

!8595 worker Serialization exception description incomplete

Merge pull request !8595 from hwx1130639/master
...@@ -1773,7 +1773,7 @@ describe('threadWorkerTest', function () { ...@@ -1773,7 +1773,7 @@ describe('threadWorkerTest', function () {
await promiseCase() await promiseCase()
} }
expect(error.name).assertEqual("BusinessError") expect(error.name).assertEqual("BusinessError")
expect(error.message).assertEqual("Serializing an uncaught exception failed, failed to serialize message.") expect(error.message).assertEqual("An exception occurred during serialization, failed to serialize message.")
flag = false flag = false
ss.terminate() ss.terminate()
while (!flag) { while (!flag) {
...@@ -2427,7 +2427,7 @@ describe('threadWorkerTest', function () { ...@@ -2427,7 +2427,7 @@ describe('threadWorkerTest', function () {
while (!isTerminate) { while (!isTerminate) {
await promiseCase(); await promiseCase();
} }
expect(res).assertEqual("Serializing an uncaught exception failed, failed to serialize message."); expect(res).assertEqual("An exception occurred during serialization, failed to serialize message.");
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册