Permalink
Browse files

Fix Travis Test.

  • Loading branch information...
1 parent e9eaf69 commit f00b52f04dc14a1f2174e1257864dfa3104c5e58 @dongjoon-hyun dongjoon-hyun committed Feb 25, 2016
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/TravisTest.php
@@ -25,13 +25,17 @@
2 => ["pipe", "w"]
], $pipes);
+if(!is_resource($server)){
+ die('Failed to create process');
+}
+
fwrite($pipes[0], "version\nmakeserver\nstop\n\n");
+fclose($pipes[0]);
while(!feof($pipes[1])){
echo fgets($pipes[1]);
}
-fclose($pipes[0]);
fclose($pipes[1]);
fclose($pipes[2]);
@@ -42,4 +46,4 @@
exit(1);
}else{
exit(0);
-}
+}

0 comments on commit f00b52f

Please sign in to comment.