File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -230,14 +230,14 @@ class EmberApp {
230230 return this . buildAppInstance ( )
231231 . then ( instance => {
232232 result . instance = instance ;
233- return new Promise ( function ( resolve , reject ) {
233+ return new Promise ( ( resolve , reject ) => {
234234 let timer ;
235235 if ( destroyAppInstanceInMs > 0 ) {
236236 // start a timer to destroy the appInstance forcefully in the given ms.
237237 // This is a failure mechanism so that node process doesn't get wedged if the `visit` never completes.
238- timer = setTimeout ( ( ) => {
238+ timer = setTimeout ( ( ) => {
239239 if ( result . _destroyAppInstance ( ) ) {
240- reject ( new Error ( 'App instance was forcefully destroyed in ' + destroyAppInstanceInMs + 'ms' ) ) ;
240+ reject ( new Error ( 'Fastboot forcefully destroyed App instance in ' + destroyAppInstanceInMs + 'ms' ) ) ;
241241 }
242242 } , destroyAppInstanceInMs ) ;
243243 }
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ describe("FastBoot", function() {
106106 distPath : fixture ( 'long-resolving-app' )
107107 } ) ;
108108
109- fastboot . visit ( '/' , { destroyAppInstanceInMs : 300 } )
109+ fastboot . visit ( '/' , { destroyAppInstanceInMs : 5 } )
110110 . catch ( ( e ) => {
111- expect ( e . message ) . to . equal ( 'App instance was forcefully destroyed in 300ms ' ) ;
111+ expect ( e . message ) . to . equal ( 'Fastboot forcefully destroyed App instance in 5ms ' ) ;
112112 done ( ) ;
113113 } ) ;
114114 } ) ;
You can’t perform that action at this time.
0 commit comments