diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-29 19:00:02 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-14 08:59:47 +0000 |
commit | 9cef9811c615df506807f405eb2de3c1a9268fba (patch) | |
tree | 159bb138034f2dfefe4e356b5590815e054e7727 /test/afb-test/tests/low-can_BasicAPITest.lua | |
parent | ff089ab8b009c81bcf92abf181faa00348eb62cd (diff) |
Filter tests improvements
- Unsubscribe using the tear down feature instead of invoking it inside a test
which could not be called if a previous assertion failed.
- Always use the same event so make the 'api' and 'evt' variables at file scope.
- Asserting the bash script's return launcher execution
Change-Id: I6be151d07f890aef053a5ada06216aac7941c165
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'test/afb-test/tests/low-can_BasicAPITest.lua')
-rw-r--r-- | test/afb-test/tests/low-can_BasicAPITest.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/afb-test/tests/low-can_BasicAPITest.lua b/test/afb-test/tests/low-can_BasicAPITest.lua index c59b1a70..bebf057a 100644 --- a/test/afb-test/tests/low-can_BasicAPITest.lua +++ b/test/afb-test/tests/low-can_BasicAPITest.lua @@ -66,7 +66,7 @@ _AFT.describe("Diagnostic_engine_speed_simulation", function() _AFT.assertVerbStatusSuccess(api,"subscribe", { event = evt }) _AFT.addEventToMonitor(api .."/diagnostic_messages", function(eventName, data) - _AFT.assertIsTrue(data.name == "diagnostic_messages.engine.speed") + _AFT.assertIsTrue(data.name == evt) end) local ret = os.execute("bash ".._AFT.bindingRootDir.."/var/replay_launcher.sh ".._AFT.bindingRootDir.."/var/test1.canreplay") |