mirror of https://github.com/embarklabs/embark.git
Merge pull request #681 from embark-framework/bugfix/test-ipc
Fix connection to IPC
This commit is contained in:
commit
00bb7a0de0
|
@ -38,6 +38,7 @@ class IPC {
|
|||
}
|
||||
|
||||
serve() {
|
||||
fs.mkdirpSync(fs.dappPath(".embark"));
|
||||
ipc.serve(this.socketPath, () => {});
|
||||
ipc.server.start();
|
||||
|
||||
|
@ -50,7 +51,7 @@ class IPC {
|
|||
if (data.action !== action) {
|
||||
return;
|
||||
}
|
||||
let reply = function(replyData) {
|
||||
let reply = function(_err, replyData) {
|
||||
self.reply(socket, 'compile', replyData);
|
||||
};
|
||||
done(data.message, reply, socket);
|
||||
|
@ -66,7 +67,7 @@ class IPC {
|
|||
if (msg.action !== action) {
|
||||
return;
|
||||
}
|
||||
cb(msg.message);
|
||||
cb(null, msg.message);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -117,8 +117,8 @@ class Test {
|
|||
web3: this.web3
|
||||
});
|
||||
this.engine.startService("deployment", {
|
||||
trackContracts: false
|
||||
//ipcRole: 'client' // disabled for now due to issues with ipc file
|
||||
trackContracts: false,
|
||||
ipcRole: 'client'
|
||||
});
|
||||
this.events.request('deploy:setGasLimit', 6000000);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue