diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-21 14:25:45 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-23 00:23:25 +0200 |
commit | 590e30f846481c125a62093a7472937ec30a780b (patch) | |
tree | f4d0bbca9bf469042b355565ff72897f77fd07da /conf.d/controller/lua.d/aftTest.lua | |
parent | 5d1ce3d67227b1b6c4dea36a5fb573213f00c904 (diff) |
Update the self-tests
- Fix: expected data table structure in callbackEvent
- Testing event received with a timeout is meaningless since
the event are pushed on afb-test request. So They are already
received at the assertion moment.
- Wrong test waiting for a verb error.
Change-Id: I1cec211f7fe4c37d4c238439e8a9a633121a6cf0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d/aftTest.lua')
-rw-r--r-- | conf.d/controller/lua.d/aftTest.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.d/controller/lua.d/aftTest.lua b/conf.d/controller/lua.d/aftTest.lua index ed3ece3..4dc93b8 100644 --- a/conf.d/controller/lua.d/aftTest.lua +++ b/conf.d/controller/lua.d/aftTest.lua @@ -103,5 +103,5 @@ _AFT.describe("testAssertVerbStatusSuccess",function() _AFT.assertVerbStatusSucc _AFT.describe("testAssertVerbResponseEquals",function() _AFT.assertVerbResponseEquals('hello', 'ping', {},"Some String") end) _AFT.describe("testAssertVerbCb",function() _AFT.assertVerbCb('hello', 'ping', {},_callback) end) _AFT.describe("testAssertVerbStatusError",function() _AFT.assertVerbStatusError('hello', 'pingfail', {}) end) -_AFT.describe("testAssertVerbResponseEqualsError",function() _AFT.assertVerbResponseEqualsError('hello', 'pingfail', {},"Ping Binder Daemon fails") end) +_AFT.describe("testAssertVerbResponseEqualsError",function() _AFT.assertVerbResponseEqualsError('hello', 'nonexistentverb', {},"Ping Binder Daemon fails") end) _AFT.describe("testAssertVerbCbError",function() _AFT.assertVerbCbError('hello', 'pingfail', {},_callbackError) end) |