This repository was archived by the owner on Dec 4, 2023. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,8 @@ Runnable.prototype.resetTimeout = function () {
229
229
if ( ! self . _enableTimeouts ) {
230
230
return ;
231
231
}
232
- self . callback ( new Error ( 'timeout! Test didn\'t complete within ' + ms +
233
- '. For async tests, make sure you are calling \' done\' or that the returned Promise eventually resolves.' ) ) ;
232
+ self . callback ( new Error ( 'Timeout of ' + ms +
233
+ 'ms exceeded . For async tests and hooks, ensure " done()" is called; if returning a Promise, ensure it resolves.' ) ) ;
234
234
self . timedOut = true ;
235
235
} , ms ) ;
236
236
} ;
@@ -289,8 +289,8 @@ Runnable.prototype.run = function (fn) {
289
289
self . duration = new Date ( ) - start ;
290
290
finished = true ;
291
291
if ( ! err && self . duration > ms && self . _enableTimeouts ) {
292
- err = new Error ( 'timeout! Test didn\'t complete within ' + ms +
293
- ' . For async tests, make sure you are calling \' done\' or that the returned Promise eventually resolves.') ;
292
+ err = new Error ( 'Timeout of ' + ms +
293
+ 'ms exceeded . For async tests and hooks, ensure " done()" is called; if returning a Promise, ensure it resolves.') ;
294
294
}
295
295
fn ( err ) ;
296
296
}
You can’t perform that action at this time.
0 commit comments