Test for acl rejection

This commit is contained in:
Alex Young
2012-06-28 13:29:22 +01:00
parent c9fdd5a60e
commit 4de4cee3d0
6 changed files with 99 additions and 46 deletions

View File

@@ -7,9 +7,9 @@ require 'flexnbd/constants'
module FlexNBD
module FakeSource
def connect( addr, port, err_msg )
def connect( addr, port, err_msg, source_addr=nil, source_port=0 )
timing_out( 2, err_msg ) do
TCPSocket.open( addr, port )
TCPSocket.new( addr, port, source_addr, source_port )
end
end