aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-06-19 11:03:40 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-10 17:12:13 +0200
commitef87e77c3804b00cec27df4b61d8616d9fa3f290 (patch)
tree1d50cbc2227a0501a08c476575509fc2ed0cee1c /conf.d/project
parentb9cdfaafb0f0048460a593acb06a67149791f766 (diff)
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project')
-rw-r--r--conf.d/project/lua.d/aft.lua2
1 files changed, 2 insertions, 0 deletions
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' },