Skip to content

Instantly share code, notes, and snippets.

@FireFoxIXI
Created September 23, 2011 07:14
Show Gist options
  • Save FireFoxIXI/1236888 to your computer and use it in GitHub Desktop.
Save FireFoxIXI/1236888 to your computer and use it in GitHub Desktop.
Could not establish connection: Connection refused (111)
diff --git a/src/Behat/Mink/Driver/Zombie/Server.php b/src/Behat/Mink/Driver/Zombie/Server.php
index ed50495..2827082 100644
--- a/src/Behat/Mink/Driver/Zombie/Server.php
+++ b/src/Behat/Mink/Driver/Zombie/Server.php
@@ -31,7 +31,7 @@ class Server
/**
* @var string
*/
- private $nodeBin = null;
+ private $nodeBin = "/home/tools/node-v0.4.12/node"; //null;
/**
* @var string
@@ -164,7 +164,7 @@ class Server
$serverScript = strtr($this->serverScript, array(
'%host%' => $this->host,
'%port%' => $this->port
- )) . "\nconsole.log('Mink::ZombieDriver started');";
+ ));
file_put_contents($serverPath, $serverScript);
// run server
@@ -256,7 +256,7 @@ net.createServer(function (stream) {
eval(buffer);
buffer = "";
});
-}).listen(%port%, '%host%');
+}).listen(%port%, '%host%', function() { console.log('Mink::ZombieDriver started'); });
console.log('Zombie.js server running at %host%:%port%');
JS;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment