Skip to content

Commit ad6f109

Browse files
committed
updated error message
1 parent b20e775 commit ad6f109

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ember-app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

test/fastboot-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)