Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Temporary change for investigating test failure at Travis-CI worker

On Travis-CI worker, this test raises EAFNOSUPPORT instead of
EADDRINUSE.  This change is for checking from where the exception
raised.
  • Loading branch information...
commit 4b6abe62b37d0188fbbbddb1255d7251bb109c19 1 parent b4d4cf4
@nahi authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/test_httpclient.rb
View
6 test/test_httpclient.rb
@@ -1399,8 +1399,10 @@ def test_socket_local
assert_equal('hello', @client.get_content(serverurl + 'hello'))
@client.reset_all
@client.socket_local.port = serverport
- assert_raises(Errno::EADDRINUSE) do
- assert_equal('hello', @client.get_content(serverurl + 'hello'))
+ begin
+ @client.get_content(serverurl + 'hello')
+ rescue Errno::EADDRINUSE
+ assert(true)
end
end

4 comments on commit 4b6abe6

@rkh

It is also possible to download a VM and experiment locally, so you don't have to commit all that upstream.

@nahi
Owner

Thanks! That would help me in the future. Do you have a link to where I can download it? Do I need to build from https://github.com/travis-ci/travis-boxes ?

@rkh

Nah, travis-boxes it too complicated. Either you can use sous-chef with Vagrant, change Vagrantfile to have these lines:

  config.vm.box     = "ruby_base"
  config.vm.box_url = "/Volumes/Datenschleuder/vms/travis-ruby.box"

Or jump into #travis on Freenode and ask for the VM image link (don't have it right now, sorry).

@nahi
Owner

Thanks @rkh, I would try it next time!

Please sign in to comment.
Something went wrong with that request. Please try again.