diff options
author | 2019-11-12 14:44:02 +0100 | |
---|---|---|
committer | 2020-01-09 14:40:41 +0100 | |
commit | 9cc8fe590162ec91000f1d81dbfd888616afc6ab (patch) | |
tree | 0284f90c2da72dc8d2f2af2aeef5a8a7765e6716 /test/afb-test/tests/low-can_FilterTest01.lua | |
parent | 7d9324e95abdb505a8f422251b751b3af2cbcff4 (diff) |
test: Update tests with new transport
Bug-AGL: SPEC-2386
Change-Id: I3a0e4ea451f9e01fc13b7498b9eb20e81548ce5d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'test/afb-test/tests/low-can_FilterTest01.lua')
-rw-r--r-- | test/afb-test/tests/low-can_FilterTest01.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/afb-test/tests/low-can_FilterTest01.lua b/test/afb-test/tests/low-can_FilterTest01.lua index 028358f6..40d3f561 100644 --- a/test/afb-test/tests/low-can_FilterTest01.lua +++ b/test/afb-test/tests/low-can_FilterTest01.lua @@ -46,8 +46,8 @@ _AFT.setAfterAll( function() end) _AFT.describe("Filter_Test_01/Step_1", function() - _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname,data) - _AFT.assertEquals(data.name,evt) + _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname, data) + _AFT.assertEquals(data.name, evt) end) _AFT.assertVerbStatusSuccess(api ,"subscribe", { event = evt, filter = { min = 30, max = 100}}) @@ -62,7 +62,7 @@ function() end) _AFT.describe("Filter_Test_01/Step_2", function() - _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname,data) + _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname, data) _AFT.assertEquals(eventname, api.."/"..evt) _AFT.assertIsTrue(data.value > 30 and data.value < 100) end) @@ -81,10 +81,10 @@ end) _AFT.describe("Filter_Test_01/Step_3", function() _AFT.enableEventHistory() -- You will need this to check for time intervals between two events - _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname,data,dataH) - _AFT.assertEquals(dataH[1].name,evt) + _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname, data, dataH) + _AFT.assertEquals(dataH[1].name, evt) _AFT.assertIsTrue(dataH[1].value > 30 and dataH[1].value < 100 ) - _AFT.assertEquals(dataH[2].name,evt) + _AFT.assertEquals(dataH[2].name, evt) _AFT.assertIsTrue(dataH[2].value > 30 and dataH[2].value < 100 ) _AFT.assertIsTrue(dataH[2].timestamp - dataH[1].timestamp >= 1000000) end) |