@@ -131,7 +131,7 @@ describe('UserCodeRunner', () => {
131131 const { error, result } = await UserCodeRunner . run ( this . options )
132132 expect ( error ) . to . be . instanceof ( Error )
133133 expect ( error . message ) . to . eql (
134- 'function timed out after 100 milliseconds'
134+ 'function timed out, ensure the callback is executed within 100 milliseconds'
135135 )
136136 expect ( result ) . to . eql ( undefined )
137137 } )
@@ -204,7 +204,7 @@ describe('UserCodeRunner', () => {
204204 } )
205205 } )
206206
207- describe ( 'function times out' , ( ) => {
207+ describe ( 'promise times out' , function ( ) {
208208 beforeEach ( function ( ) {
209209 this . options . fn = function ( ) {
210210 return Promise . resolve ( 'result' ) . delay ( 200 )
@@ -215,7 +215,7 @@ describe('UserCodeRunner', () => {
215215 const { error, result } = await UserCodeRunner . run ( this . options )
216216 expect ( error ) . to . be . instanceof ( Error )
217217 expect ( error . message ) . to . eql (
218- 'function timed out after 100 milliseconds'
218+ 'function timed out, ensure the promise resolves within 100 milliseconds'
219219 )
220220 expect ( result ) . to . eql ( undefined )
221221 } )
0 commit comments