░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/usr/lib/node_modules/npm/node_modules/retry/test/integration
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: test-forever.js
var common = require('../common'); var assert = common.assert; var retry = require(common.dir.lib + '/retry'); (function testForeverUsesFirstTimeout() { var operation = retry.operation({ retries: 0, minTimeout: 100, maxTimeout: 100, forever: true }); operation.attempt(function(numAttempt) { console.log('>numAttempt', numAttempt); var err = new Error("foo"); if (numAttempt == 10) { operation.stop(); } if (operation.retry(err)) { return; } }); })();
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 test-forever.js
JS
515 B
2023-09-24 03:45
EDIT
📄 test-retry-operation.js
JS
6.3 KB
2023-09-24 03:45
EDIT
📄 test-retry-wrap.js
JS
2.6 KB
2023-09-24 03:45
EDIT
📄 test-timeouts.js
JS
1.7 KB
2023-09-24 03:45
EDIT