aboutsummaryrefslogtreecommitdiffstats
path: root/test/afb-test
diff options
context:
space:
mode:
Diffstat (limited to 'test/afb-test')
-rw-r--r--test/afb-test/etc/aft-selftest.json (renamed from test/afb-test/etc/aft-aftest-self.json)2
-rw-r--r--test/afb-test/tests/aftTest.lua16
2 files changed, 9 insertions, 9 deletions
diff --git a/test/afb-test/etc/aft-aftest-self.json b/test/afb-test/etc/aft-selftest.json
index f8ebbcd..5a3f1dd 100644
--- a/test/afb-test/etc/aft-aftest-self.json
+++ b/test/afb-test/etc/aft-selftest.json
@@ -4,7 +4,7 @@
"metadata": {
"uid": "Test",
"version": "1.0",
- "api": "aft-aftest",
+ "api": "aft-selftest",
"info": "Binding made to test other bindings",
"require": [
"low-can"
diff --git a/test/afb-test/tests/aftTest.lua b/test/afb-test/tests/aftTest.lua
index 0503ae3..5c11d1d 100644
--- a/test/afb-test/tests/aftTest.lua
+++ b/test/afb-test/tests/aftTest.lua
@@ -97,13 +97,13 @@ _AFT.describe("testAssertNotIsThread", function() _AFT.assertNotIsThread(2) end)
_AFT.describe("testAssertNotIsUserdata", function() _AFT.assertNotIsUserdata(2) end)
function _callback(responseJ) _AFT.assertNotIsNil(responseJ) end
-function _callbackError(responseJ) _AFT.assertStrContains(responseJ.request.info, "verb pingfail unknown within api afTest") end
-
-_AFT.describe("testAssertVerbStatusSuccess",function() _AFT.assertVerbStatusSuccess('afTest', 'ping', {}) end)
-_AFT.describe("testAssertVerbResponseEquals",function() _AFT.assertVerbResponseEquals('afTest', 'ping', {}) end)
-_AFT.describe("testAssertVerbCb",function() _AFT.assertVerbCb('afTest', 'ping', {},_callback) end)
-_AFT.describe("testAssertVerbStatusError",function() _AFT.assertVerbStatusError('afTest', 'pingfail', {}) end)
-_AFT.describe("testAssertVerbResponseEqualsError",function() _AFT.assertVerbResponseEqualsError('afTest', 'nonexistentverb', {},"Ping Binder Daemon fails") end)
-_AFT.describe("testAssertVerbCbError",function() _AFT.assertVerbCbError('afTest', 'pingfail', {},_callbackError) end)
+function _callbackError(responseJ) _AFT.assertStrContains(responseJ.request.info, "verb pingfail unknown within api aft") end
+
+_AFT.describe("testAssertVerbStatusSuccess",function() _AFT.assertVerbStatusSuccess('aft', 'ping', {}) end)
+_AFT.describe("testAssertVerbResponseEquals",function() _AFT.assertVerbResponseEquals('aft', 'ping', {}) end)
+_AFT.describe("testAssertVerbCb",function() _AFT.assertVerbCb('aft', 'ping', {},_callback) end)
+_AFT.describe("testAssertVerbStatusError",function() _AFT.assertVerbStatusError('aft', 'pingfail', {}) end)
+_AFT.describe("testAssertVerbResponseEqualsError",function() _AFT.assertVerbResponseEqualsError('aft', 'nonexistentverb', {},"Ping Binder Daemon fails") end)
+_AFT.describe("testAssertVerbCbError",function() _AFT.assertVerbCbError('aft', 'pingfail', {},_callbackError) end)
_AFT.exitAtEnd()