remove useless code in utils.lua and add delay to swarm/configs tests

This commit is contained in:
florian 2024-01-11 15:31:51 +01:00
parent a0cc9a4408
commit 1ef7653bdc
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500
2 changed files with 2 additions and 14 deletions

View file

@ -1,7 +1,8 @@
{
"name": "swarm-configs",
"kinds": ["swarm"],
"timeout": 120,
"timeout": 60,
"delay": 120,
"tests": [
{
"type": "string",

View file

@ -57,19 +57,6 @@ utils.get_variable = function(variable, site_search, ctx)
end
if variables[server_name] then
value = variables[server_name][variable]
else
for first_server, server_variables in pairs(variables) do
if first_server ~= "global" then
all_server_name = server_variables["SERVER_NAME"]
if all_server_name then
for single_server_name in all_server_name:gmatch("%S+") do
if single_server_name == server_name then
return server_variables[variable], "success"
end
end
end
end
end
end
end
return value, "success"