Skip to content

Commit 7f58748

Browse files
committed
Increase the tolerance in the parallelize helper tests
1 parent 7fb9acc commit 7f58748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/vscode/ada/test/general/helpers.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ suite('parallelize', function () {
290290
* overall the computation shouldn't take more than the
291291
* time needed to process one data item (with a margin).
292292
*/
293-
const margin = singleWorkDurationMs * 0.2;
293+
const margin = singleWorkDurationMs * 0.4;
294294
/**
295295
* When processing 4 items with 3 threads, the first parallel
296296
* batch processes 3 items and a second batch processes 1 item.
@@ -303,7 +303,7 @@ suite('parallelize', function () {
303303
assert.ok(
304304
duration < expectedTotalWorkDuration,
305305
`The computation took ${duration}ms when we expected` +
306-
` no more than ${expectedTotalWorkDuration}`,
306+
` no more than ${expectedTotalWorkDuration}ms`,
307307
);
308308
}
309309
});

0 commit comments

Comments
 (0)