summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-rmdir-recursive.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-11-25 15:04:18 -0500
committercjihrig <cjihrig@gmail.com>2019-11-27 18:27:11 -0500
commit4059055739c1c395c00cf989d77073e862f9dae6 (patch)
tree218dbe11b5f0931b09b14ce5284e579d8512fe7b /test/parallel/test-fs-rmdir-recursive.js
parent84aa19270d2d2736f1e18b359e3531b76db788d3 (diff)
downloadandroid-node-v8-4059055739c1c395c00cf989d77073e862f9dae6.tar.gz
android-node-v8-4059055739c1c395c00cf989d77073e862f9dae6.tar.bz2
android-node-v8-4059055739c1c395c00cf989d77073e862f9dae6.zip
fs: rename rimraf's maxBusyTries to maxRetries
This is part of reworking the rimraf retry logic. Refs: https://github.com/nodejs/node/issues/30580 PR-URL: https://github.com/nodejs/node/pull/30644 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-rmdir-recursive.js')
-rw-r--r--test/parallel/test-fs-rmdir-recursive.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-fs-rmdir-recursive.js b/test/parallel/test-fs-rmdir-recursive.js
index 5f630b686a..6bc7fc6e56 100644
--- a/test/parallel/test-fs-rmdir-recursive.js
+++ b/test/parallel/test-fs-rmdir-recursive.js
@@ -156,12 +156,12 @@ function removeAsync(dir) {
{
const defaults = {
emfileWait: 1000,
- maxBusyTries: 3,
+ maxRetries: 3,
recursive: false
};
const modified = {
emfileWait: 953,
- maxBusyTries: 5,
+ maxRetries: 5,
recursive: true
};
@@ -169,10 +169,10 @@ function removeAsync(dir) {
assert.deepStrictEqual(validateRmdirOptions({}), defaults);
assert.deepStrictEqual(validateRmdirOptions(modified), modified);
assert.deepStrictEqual(validateRmdirOptions({
- maxBusyTries: 99
+ maxRetries: 99
}), {
emfileWait: 1000,
- maxBusyTries: 99,
+ maxRetries: 99,
recursive: false
});
@@ -205,10 +205,10 @@ function removeAsync(dir) {
});
common.expectsError(() => {
- validateRmdirOptions({ maxBusyTries: -1 });
+ validateRmdirOptions({ maxRetries: -1 });
}, {
code: 'ERR_OUT_OF_RANGE',
type: RangeError,
- message: /^The value of "maxBusyTries" is out of range\./
+ message: /^The value of "maxRetries" is out of range\./
});
}