unittests: Remove start of trace, not end

This commit is contained in:
ZyX
2017-12-24 17:13:42 +03:00
parent 67fa9e5237
commit 32689aa5be

View File

@@ -690,7 +690,9 @@ local function check_child_err(rd)
break
end
trace[#trace + 1] = traceline
table.remove(trace, maxtrace + 1)
if #trace > maxtrace then
table.remove(trace, 1)
end
end
local res = sc.read(rd, 2)
if #res ~= 2 then