aboutsummaryrefslogtreecommitdiffstats
path: root/test/optional/filter-limit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/optional/filter-limit.lua')
-rw-r--r--test/optional/filter-limit.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/optional/filter-limit.lua b/test/optional/filter-limit.lua
index a0bfc0b..f980b78 100644
--- a/test/optional/filter-limit.lua
+++ b/test/optional/filter-limit.lua
@@ -8,6 +8,8 @@ See LICENSE file for license details
util = require('awall.util')
json = require('cjson')
+LOGOPTIONS = {false, true, 'none', 'ulog'}
+
res = {}
function add(limit_type, filter)
@@ -15,7 +17,7 @@ function add(limit_type, filter)
for _, high_rate in ipairs{false, true} do
local function add_limit(limit)
- for _, log in ipairs{false, true, 'none'} do
+ for _, log in ipairs(LOGOPTIONS) do
for _, action in ipairs{false, 'pass'} do
if not (high_rate and log and action) then
table.insert(
@@ -38,7 +40,7 @@ function add(limit_type, filter)
add_limit(count or 1)
for _, interval in ipairs{false, 5} do
- for _, log in ipairs{true, false, 'none'} do
+ for _, log in ipairs(LOGOPTIONS) do
local limit = {count=count, interval=interval or nil}
if log ~= true then limit.log = log end