Check that TCP_NODELAY is set on upstream sockets on reconnection
Also rationalize the test to see if a function has been called. Still not great, but getting there :)
This commit is contained in:
@@ -39,4 +39,9 @@ module LdPreload
|
||||
l.split(':').map { |i| i =~ /^\d+$/ ? i.to_i : i }
|
||||
end
|
||||
end
|
||||
|
||||
def assert_func_call(loglines, args, msg)
|
||||
re = Regexp.new('^' + args.join(':'))
|
||||
assert(loglines.any? { |l| l.match(re) }, msg)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user