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:
Patrick J Cherry
2018-02-09 10:26:08 +00:00
parent c053a54faa
commit 8e67180999
5 changed files with 70 additions and 37 deletions

View File

@@ -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