fix(test): fix tests getting stuck when embark is run next to it

This commit is contained in:
Jonathan Rainville 2019-02-21 11:44:02 -05:00 committed by Iuri Matias
parent d33425fb4c
commit e64ed36092

View File

@ -61,7 +61,7 @@ class Console {
this.events.setCommandHandler("console:executeCmd", this.executeCmd.bind(this)); this.events.setCommandHandler("console:executeCmd", this.executeCmd.bind(this));
this.events.setCommandHandler("console:history", (cb: any) => this.getHistory(this.cmdHistorySize(), cb)); this.events.setCommandHandler("console:history", (cb: any) => this.getHistory(this.cmdHistorySize(), cb));
this.events.setCommandHandler("console:provider:ready", (cb: any) => { this.events.setCommandHandler("console:provider:ready", (cb: any) => {
if (this.providerReady) { if (this.providerReady || this.isEmbarkConsole) {
return cb(); return cb();
} }
this.events.once("console:provider:done", cb); this.events.once("console:provider:done", cb);