From ef87e77c3804b00cec27df4b61d8616d9fa3f290 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 19 Jun 2018 11:03:40 +0200 Subject: Added alias function to the README To improve readability of tests we need a function to reset the receivedCount on event or log messages then we can assert in a same function that it has been received and not received. Change-Id: If08f24732c78797a0ef36b780e9620474d95f70d Signed-off-by: Romain Forlot --- conf.d/project/lua.d/aft.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf.d/project/lua.d/aft.lua b/conf.d/project/lua.d/aft.lua index 0c7c307..92550e0 100644 --- a/conf.d/project/lua.d/aft.lua +++ b/conf.d/project/lua.d/aft.lua @@ -389,6 +389,8 @@ local luaunit_list_of_functions = { local _AFT_list_of_funcs = { -- AF Binder generic assertions + { 'addEventToMonitor', 'resetEventReceivedCount' }, + { 'addLogToMonitor', 'resetLogReceivedCount' }, { 'assertVerb', 'assertVerbStatusSuccess' }, { 'assertVerb', 'assertVerbResponseEquals' }, { 'assertVerb', 'assertVerbCb' }, -- cgit 1.2.3-korg