From f0e258cf8569b07153ed6beb1d31455e4de142f4 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Thu, 10 Sep 2020 18:52:56 +0200 Subject: fix(bytetrack): send correct events when opening lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit a bit of test cleanup ärrår feeel SPLIT fix: sned correct updates on --- test/helpers.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/helpers.lua') diff --git a/test/helpers.lua b/test/helpers.lua index 7817345617..2e0258afed 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -82,6 +82,17 @@ end function module.ok(res, msg, logfile) return dumplog(logfile, assert.is_true, res, msg) end + +-- TODO(bfredl): this should "failure" not "error" (issue with dumplog() ) +local function epicfail(state, arguments, _) + state.failure_message = arguments[1] + return false +end +assert:register("assertion", "epicfail", epicfail) +function module.fail(msg, logfile) + return dumplog(logfile, assert.epicfail, msg) +end + function module.matches(pat, actual) if nil ~= string.match(actual, pat) then return true -- cgit