summaryrefslogtreecommitdiffstats
path: root/conf.d/controller/lua.d
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-08-21 15:36:37 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-08-22 11:24:29 +0200
commit5d1ce3d67227b1b6c4dea36a5fb573213f00c904 (patch)
tree2e53a94f9da4a10995fc239bbe714b7293f41c9a /conf.d/controller/lua.d
parent94a78985a28dfbf53cb9b10648340dad109a69ac (diff)
Cleaning
Cleaning, there is no point to test if we do not receive events Change-Id: I28bc46d7b933c851f716466ad0d97b56cca3d95b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d')
-rw-r--r--conf.d/controller/lua.d/aft.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua
index a454168..8f03e28 100644
--- a/conf.d/controller/lua.d/aft.lua
+++ b/conf.d/controller/lua.d/aft.lua
@@ -212,30 +212,6 @@ end
Assert and test functions about the event part.
]]
-function _AFT.assertEvtGrpNotReceived(eventGroup, timeout)
- local count = 0
- local expected = 0
- local eventName = ""
-
- if timeout then
- count = _AFT.lockWaitGroup(eventGroup, timeout)
- else
- for event in pairs(eventGroup) do
- count = count + _AFT.monitored_events[event].receivedCount
- end
- end
-
- for event,expectedCount in pairs(eventGroup) do
- eventName = eventName .. " " .. event
- expected = expected + expectedCount
- end
- _AFT.assertIsTrue(count <= expected, "One of the following events has been received: '".. eventName .."' but it shouldn't")
-
- for event in pairs(eventGroup) do
- _AFT.triggerEvtCallback(event)
- end
-end
-
function _AFT.assertEvtGrpReceived(eventGroup, timeout)
local count = 0
local expected = 0
@@ -261,17 +237,6 @@ function _AFT.assertEvtGrpReceived(eventGroup, timeout)
end
end
-function _AFT.assertEvtNotReceived(eventName, timeout)
- local count = _AFT.monitored_events[eventName].receivedCount
- if timeout then
- count = _AFT.lockWait(eventName, timeout)
- end
-
- _AFT.assertIsTrue(count == 0, "Event '".. eventName .."' received but it shouldn't")
-
- _AFT.triggerEvtCallback(eventName)
-end
-
function _AFT.assertEvtReceived(eventName, timeout)
local count = _AFT.monitored_events[eventName].receivedCount
if timeout then