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
  • Loading branch information...
1 parent b4d4cf4 commit 4b6abe62b37d0188fbbbddb1255d7251bb109c19 @nahi committed May 6, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/test_httpclient.rb
@@ -1399,8 +1399,10 @@ def test_socket_local
assert_equal('hello', @client.get_content(serverurl + 'hello'))
@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)

4 comments on commit 4b6abe6

rkh replied May 6, 2012

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


nahi replied May 6, 2012

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 ?

rkh replied May 6, 2012

Nah, travis-boxes it too complicated. Either you can use sous-chef with Vagrant, change Vagrantfile to have these lines:     = "ruby_base"
  config.vm.box_url = "/Volumes/Datenschleuder/vms/"

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


nahi replied May 8, 2012

Thanks @rkh, I would try it next time!

Please sign in to comment.