Update dev dependency

To test for mem leaks, just run node test/runner.js
and follow the instructions.
This commit is contained in:
Rob Wu
2014-01-03 14:21:49 +01:00
parent 88797acc38
commit 7983d1e7ae
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@
"http-proxy": "~0.10"
},
"devDependencies": {
"node-webkit-agent": "~0.1.2"
"webkit-devtools-agent": "~0.2.1"
},
"engines": {
"node": ">=0.6.6",

View File

@@ -38,7 +38,7 @@ setupRedirectServer(function() {
* if the devtools agent is available, omitted otherwise.
*/
function setupCORSServer(callback) {
var child = fork('./sub-server', [host, port]);
var child = fork('./sub-server', [host, port], {cwd: __dirname});
child.on('message', function(message) {
if (message.hasDevtoolsAgent) {
callback(function() {
@@ -56,7 +56,7 @@ function setupCORSServer(callback) {
}
function setupRedirectServer(callback) {
var child = fork('./sub-no-cors-server', [host, portServer]);
var child = fork('./sub-no-cors-server', [host, portServer], {cwd: __dirname});
child.once('message', function() {
callback();
});