Rubocop
This commit is contained in:
@@ -7,21 +7,21 @@ include FlexNBD
|
||||
Thread.abort_on_exception
|
||||
|
||||
addr, port = *ARGV
|
||||
server = FakeDest.new( addr, port )
|
||||
server = FakeDest.new(addr, port)
|
||||
client1 = server.accept
|
||||
|
||||
# We don't expect a reconnection attempt.
|
||||
t = Thread.new do
|
||||
begin
|
||||
client2 = server.accept( "Timed out waiting for a reconnection",
|
||||
FlexNBD::MS_RETRY_DELAY_SECS + 1 )
|
||||
fail "Unexpected reconnection"
|
||||
client2 = server.accept('Timed out waiting for a reconnection',
|
||||
FlexNBD::MS_RETRY_DELAY_SECS + 1)
|
||||
raise 'Unexpected reconnection'
|
||||
rescue Timeout::Error
|
||||
#expected
|
||||
# expected
|
||||
end
|
||||
end
|
||||
|
||||
client1.write_hello( :magic => :wrong )
|
||||
client1.write_hello(magic: :wrong)
|
||||
|
||||
t.join
|
||||
|
||||
|
Reference in New Issue
Block a user