Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ruby/library/socket/tcpserver/new_spec.rb
Original file line number Diff line number Diff line change
@@ -87,6 +87,6 @@ def t.to_str; SocketSpecs.port.to_s; end

it "sets SO_REUSEADDR on the resulting server" do
@server = TCPServer.new('127.0.0.1', SocketSpecs.port)
@server.getsockopt(:SOCKET, :REUSEADDR).int.should == 1
@server.getsockopt(:SOCKET, :REUSEADDR).int.should_not == 0
end
end

0 comments on commit e883d65

Please sign in to comment.