# # # patch "tests/common/netsync.lua" # from [3740674f76b3efe676df404047e219b604bc3be5] # to [f15a83e9fa031b64b790543973c10f78fcedfe57] # ============================================================ --- tests/common/netsync.lua 3740674f76b3efe676df404047e219b604bc3be5 +++ tests/common/netsync.lua f15a83e9fa031b64b790543973c10f78fcedfe57 @@ -107,9 +107,14 @@ function netsync.start(opts, n, min) while fsize(out.prefix .. "stderr") == 0 do sleep(1) check(out:check()) - end - mt.stop = mt.finish - return out + end + local mt_finish = mt.finish + mt.finish = function(obj, timeout) + sleep(1) + mt_finish(obj, timeout) + end + mt.stop = mt.finish + return out end function netsync.internal.run(oper, pat, opts)