nodejs-fast-levenshtein/fast-levenshtein_adjust-timeouts.patch
laokz 51688c68ed increase slow async test timeout
(cherry picked from commit 24ca7349e37b29a94ba36cfef4f5aaf2dd5bf6b8)
2025-02-11 09:54:40 +08:00

23 lines
584 B
Diff

diff --git a/test/tests.js b/test/tests.js
index 54b9222..49628c5 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -108,7 +108,7 @@ var text1 = fs.readFileSync(__dirname + '/text1.txt', 'utf-8'),
exports['Async'] = {
'no progress callback': function(done) {
- this.timeout(20000);
+ this.timeout(80000);
var startTime = new Date().valueOf();
@@ -124,7 +124,7 @@ exports['Async'] = {
});
},
'with progress callback': function(done) {
- this.timeout(20000);
+ this.timeout(80000);
var percents = [];
var progress = function(percent) {