aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/controller/lua.d/helloworld.lua
diff options
context:
space:
mode:
authorCorentin Le Gall <corentinlgs@gmail.com>2018-07-23 13:55:25 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-26 10:19:48 +0200
commit99e5c662eb4c5819e082d955da963a6db21c0e0a (patch)
treea0a920ff52ce6f80a0d122a2b8cb534b01862858 /conf.d/controller/lua.d/helloworld.lua
parent7df6f7dd70ffc7f073e466cc7e3788276c148e2e (diff)
Fixed bugs on EvtGrpReceived functions
-Changed event.name to eventName and added a condition in _AFT.triggerEvtCallback. -Added tests functions to assertEvtGrpReceived functions. -Corrected a mistake in _AFT.assertEvtGrpNotReceived. Change-Id: Ic0f72ac9789f5056dd628d950fa53f54b3a82112 Signed-off-by: Corentin Le Gall <corentinlgs@gmail.com>
Diffstat (limited to 'conf.d/controller/lua.d/helloworld.lua')
-rw-r--r--conf.d/controller/lua.d/helloworld.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/conf.d/controller/lua.d/helloworld.lua b/conf.d/controller/lua.d/helloworld.lua
index 8fcf077..bffb230 100644
--- a/conf.d/controller/lua.d/helloworld.lua
+++ b/conf.d/controller/lua.d/helloworld.lua
@@ -55,5 +55,8 @@ _AFT.testVerbStatusSuccess('testEventPushanotherEvent', 'hello', 'eventpush', {t
_AFT.testVerbStatusSuccess('testGenerateWarning', 'hello', 'verbose', {level = 4, message = 'My Warning message!'})
-_AFT.testEvtReceived("testanEventReceived", "hello/anEvent",3000000)
-_AFT.testEvtReceived("testanotherEventReceived", "hello/anotherEvent",3000000)
+_AFT.testEvtGrpReceived("testEventGroupReceived",{"hello/anEvent","hello/anotherEvent"},300000)
+_AFT.testEvtGrpNotReceived("testEventGroupNotReceived",{"hello/anEvent","hello/anotherEvent"},300000)
+
+_AFT.testEvtReceived("testanEventReceived", "hello/anEvent",300000)
+_AFT.testEvtReceived("testanotherEventReceived", "hello/anotherEvent",300000)