Created
September 23, 2011 07:14
-
-
Save FireFoxIXI/1236888 to your computer and use it in GitHub Desktop.
Could not establish connection: Connection refused (111)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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