未验证 提交 02f45609 编写于 作者: O openharmony_ci 提交者: Gitee

!9043 modify and add taskpool xts

Merge pull request !9043 from buzhuyu/master
...@@ -2146,7 +2146,7 @@ describe('threadWorkerTest', function () { ...@@ -2146,7 +2146,7 @@ describe('threadWorkerTest', function () {
let ss = new worker.ThreadWorker("entry/ets/workers/newworker_016.js"); let ss = new worker.ThreadWorker("entry/ets/workers/newworker_016.js");
let array = [] let array = []
for (let i = 0; i < 10; i++) { for (let i = 0; i < 10; i++) {
array[i] = CreateArray(i, 62); array[i] = CreateArray(i, 65);
} }
let res = 0; let res = 0;
...@@ -2172,7 +2172,7 @@ describe('threadWorkerTest', function () { ...@@ -2172,7 +2172,7 @@ describe('threadWorkerTest', function () {
while (!isTerminate) { while (!isTerminate) {
await promiseCase(); await promiseCase();
} }
expect(res).assertEqual(620) expect(res).assertEqual(650)
done(); done();
}) })
......
...@@ -1446,7 +1446,7 @@ describe('WorkerTest', function () { ...@@ -1446,7 +1446,7 @@ describe('WorkerTest', function () {
let ss = new worker.Worker("entry/ets/workers/worker_016.js"); let ss = new worker.Worker("entry/ets/workers/worker_016.js");
let array = [] let array = []
for (let i = 0; i < 10; i++) { for (let i = 0; i < 10; i++) {
array[i] = CreateArray(i, 62); array[i] = CreateArray(i, 65);
} }
let res = 0; let res = 0;
...@@ -1472,7 +1472,7 @@ describe('WorkerTest', function () { ...@@ -1472,7 +1472,7 @@ describe('WorkerTest', function () {
while (!isTerminate) { while (!isTerminate) {
await promiseCase(); await promiseCase();
} }
expect(res).assertEqual(620) expect(res).assertEqual(650)
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册