Commit 6c0b9868 authored by Marek Vavruša's avatar Marek Vavruša Committed by Petr Špaček

fixed issues with newer luacheck

parent ee04bed7
......@@ -76,4 +76,4 @@ files['daemon/lua/kres-gen.lua'].ignore = {'631'} -- Allow overly long lines
-- Tests and scripts can use global variables
files['scripts'].ignore = {'111', '112', '113'}
files['tests'].ignore = {'111', '112', '113'}
files['modules/*/*_test.lua'].ignore = {'111', '112', '113'}
\ No newline at end of file
files['modules/*/*_test.lua'].ignore = {'111', '112', '113', '122'}
\ No newline at end of file
......@@ -8,7 +8,7 @@ local function test_default()
-- get loaded root hints and change names to lowercase
hints_data = utils.table_keys_to_lower(hints.root())
-- root hints loaded from default location
-- root hints loaded from default location
-- check correct ip address of a.root-server.net
utils.contains(hints_data['a.root-servers.net.'], '198.41.0.4', 'has IP address for a.root-servers.net.')
end
......@@ -24,8 +24,10 @@ local function test_custom()
isnt(hints_data['a.root-servers.net.'], nil, 'can retrieve root hints')
-- check loaded ip address of a.root-server.net
utils.not_contains(hints_data['a.root-servers.net.'], '198.41.0.4', 'real IP address for a.root-servers.net. is replaced')
utils.contains(hints_data['a.root-servers.net.'], '10.0.0.1', 'real IP address for a.root-servers.net. is correct')
utils.not_contains(hints_data['a.root-servers.net.'], '198.41.0.4',
'real IP address for a.root-servers.net. is replaced')
utils.contains(hints_data['a.root-servers.net.'], '10.0.0.1',
'real IP address for a.root-servers.net. is correct')
end
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment