aboutsummaryrefslogtreecommitdiff
path: root/tests/cancel.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-26 17:45:16 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-26 17:45:16 +0200
commit62a7eab66f8f6af66c94390138815c3171b62810 (patch)
tree0b93a11f97e186d82a931b40ae092f7438ca3f31 /tests/cancel.lua
parente715be93bf00a452a6c2f1cd86a60b4ef5f30b07 (diff)
downloadlanes-62a7eab66f8f6af66c94390138815c3171b62810.tar.gz
lanes-62a7eab66f8f6af66c94390138815c3171b62810.tar.bz2
lanes-62a7eab66f8f6af66c94390138815c3171b62810.zip
Change linda:limit()
* read the current limit of a key if no limit is provided * "unlimited" is to be used to clear the limit * fix linda:set() not ignoring the limit
Diffstat (limited to '')
-rw-r--r--tests/cancel.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cancel.lua b/tests/cancel.lua
index d6c293d..1724e6a 100644
--- a/tests/cancel.lua
+++ b/tests/cancel.lua
@@ -50,9 +50,9 @@ if not next(which_tests) or which_tests.genlock then
50 50
51 -- reset the linda so that the other tests work 51 -- reset the linda so that the other tests work
52 linda:cancel("none") 52 linda:cancel("none")
53 linda:limit("lock") 53 linda:limit("lock", "unlimited")
54 linda:set("lock") 54 linda:set("lock")
55 linda:limit("atomic") 55 linda:limit("atomic", "unlimited")
56 linda:set("atomic") 56 linda:set("atomic")
57 57
58 print "test OK" 58 print "test OK"