File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ Test.prototype.timeoutAfter = function (ms) {
159159 if ( ! ms ) throw new Error ( 'timeoutAfter requires a timespan' ) ;
160160 var self = this ;
161161 var timeout = safeSetTimeout ( function ( ) {
162- self . fail ( 'test timed out after ' + ms + 'ms' ) ;
162+ self . fail ( self . name + ' timed out after ' + ms + 'ms' ) ;
163163 self . end ( ) ;
164164 } , ms ) ;
165165 this . once ( 'end' , function ( ) {
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ tap.test('timeoutAfter test', function (tt) {
1414 tt . same ( stripFullStack ( rows . toString ( 'utf8' ) ) , [
1515 'TAP version 13' ,
1616 '# timeoutAfter' ,
17- 'not ok 1 test timed out after 1ms' ,
17+ 'not ok 1 timeoutAfter timed out after 1ms' ,
1818 ' ---' ,
1919 ' operator: fail' ,
2020 ' stack: |-' ,
21- ' Error: test timed out after 1ms' ,
21+ ' Error: timeoutAfter timed out after 1ms' ,
2222 ' [... stack stripped ...]' ,
2323 ' ...' ,
2424 '' ,
You can’t perform that action at this time.
0 commit comments