Skip to content

Commit 01e2610

Browse files
Merge pull request #12126 from Snuffleupagus/unittest-shall_fail_cleanup
Attempt to reduce intermittent failures in the "cleans up document resources during rendering of page" unit-test
2 parents 7ffbda3 + 86a8fd9 commit 01e2610

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/unit/api_spec.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,11 @@ describe("api", function () {
19061906
viewport,
19071907
});
19081908

1909-
pdfDoc
1909+
renderTask.onContinue = function (cont) {
1910+
waitSome(cont);
1911+
};
1912+
1913+
return pdfDoc
19101914
.cleanup()
19111915
.then(
19121916
() => {

0 commit comments

Comments
 (0)