Browse files

SO_DEBUG requires "CAP_NET_ADMIN capability or an effective user ID o…

…f 0" (fixes #377)
  • Loading branch information...
1 parent 3c39365 commit b96b736b39261f7d74f013633cc7cd619afa20c4 @tmm1 tmm1 committed Nov 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/test_set_sock_opt.rb
View
2 tests/test_set_sock_opt.rb
@@ -19,7 +19,7 @@ def test_set_sock_opt
EM.run do
EM.connect 'google.com', 80, Module.new {
define_method :post_init do
- val = set_sock_opt Socket::SOL_SOCKET, Socket::SO_DEBUG, true
+ val = set_sock_opt Socket::SOL_SOCKET, Socket::SO_BROADCAST, true
test.assert_equal 0, val
EM.stop
end

0 comments on commit b96b736

Please sign in to comment.