Displaying 2 results from an estimated 2 matches for "abc177b".
Did you mean:
5b6177b
2013 Nov 04
2
Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze
...<1> expected but was
: <512>.
:
: 11 tests, 81 assertions, 1 failures, 0 errors, 0 skips
I don''t see how the current test can be platform independent. The following diff fixes OSX for me:
diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb
index abc177b..2244442 100644
--- a/test/unit/test_socket_helper.rb
+++ b/test/unit/test_socket_helper.rb
@@ -189,7 +189,6 @@ class TestSocketHelper < Test::Unit::TestCase
port = unused_port @test_addr
name = "#@test_addr:#{port}"
sock = bind_listen(name, :reuseport => true)
- cur = sock.getsocko...
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
...euseport]
+ sock.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1)
+ end
sock.bind(Socket.pack_sockaddr_in(port, addr))
IO_PURGATORY << sock
Kgio::TCPServer.for_fd(sock.fileno)
diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb
index a38082c..abc177b 100644
--- a/test/unit/test_socket_helper.rb
+++ b/test/unit/test_socket_helper.rb
@@ -184,4 +184,12 @@ class TestSocketHelper < Test::Unit::TestCase
assert_equal 1, cur
rescue Errno::EAFNOSUPPORT
end if RUBY_VERSION >= "1.9.2"
+
+ def test_reuseport
+ port = unused...