make sure travis build fails properly
MODIFY
.travis.yml
.travis.yml
@@ -6,8 +6,7 @@ before_script:
- curl -s https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz | sudo tar xzCf /usr/local -
- export GOROOT=/usr/local/go
- export PATH=/usr/local/go/bin:$PATH
- - sudo lsof -Pn | grep TCP
-script: "make && bundle exec rake || tail -n +1 tmp/*output"
+script: "make && bundle exec rake || (tail -n +1 tmp/*output; false)"
services:
- redis-server
- rabbitmq

MODIFY
features/support/test_daemons/redis_configuration_server.rb
features/support/test_daemons/redis_configuration_server.rb
@@ -84,7 +84,7 @@ module TestDaemons
end
def self.initiate_master_switch
- http = Net::HTTP.new('127.0.0.1', HTTP_SERVER_PORT)
+ http = Net::HTTP.new('127.0.0.1', 9650)
response = http.post '/initiate_master_switch', ''
response
end

make sure travis build fails properly