From 9cef9811c615df506807f405eb2de3c1a9268fba Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 29 Nov 2018 19:00:02 +0100 Subject: 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 --- test/afb-test/tests/low-can_BasicAPITest.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/afb-test/tests/low-can_BasicAPITest.lua') 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") -- cgit 1.2.3-korg