diff --git a/Rakefile b/Rakefile index ab8e6e5d8..f9fccc7cb 100644 --- a/Rakefile +++ b/Rakefile @@ -74,9 +74,11 @@ if ENV["TRAVIS"] desc "Run vmunit tests on clean stone and again after update.sh ran" task :"travis:vmunit" do - system "rake tests:vmunit" - system "./update.sh" - system "rake tests:vmunit" + unless system("rake tests:vmunit") && + system("./update.sh") && + system("rake tests:vmunit") + exit 1 + end end end diff --git a/src/test/github338.rb b/src/test/github338.rb index 94104d434..821dbea14 100644 --- a/src/test/github338.rb +++ b/src/test/github338.rb @@ -1,6 +1,6 @@ require 'socket' -server = TCPServer.new 2000 # Server bind to port 2000 +server = TCPServer.new "127.0.0.1", 2000 # Server bind to port 2000 output = [] def read_socket_message(socket, chunk_size = 2)