aboutsummaryrefslogtreecommitdiff
path: root/tests/errhangtest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errhangtest.lua')
-rw-r--r--tests/errhangtest.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/errhangtest.lua b/tests/errhangtest.lua
index 84de8c6..99f44b2 100644
--- a/tests/errhangtest.lua
+++ b/tests/errhangtest.lua
@@ -24,8 +24,10 @@ if true then
24 print "\n#### set 3 -> receive batched" 24 print "\n#### set 3 -> receive batched"
25 local fun = function() print "function test ok" end 25 local fun = function() print "function test ok" end
26 print(pcall(linda.set, linda, 'test', true, nil, fun)) 26 print(pcall(linda.set, linda, 'test', true, nil, fun))
27 local k,b,n,f = linda:receive(linda.batched, 'test', 3) -- read back the contents 27 -- read back the contents
28 local k,b,n,f = linda:receive(linda.batched, 'test', 3)
28 assert(linda:get("test") == nil) 29 assert(linda:get("test") == nil)
30 -- check they are ok
29 print(k, b, n) 31 print(k, b, n)
30 f() 32 f()
31 print "OK" 33 print "OK"