]> granicus.if.org Git - pdns/commitdiff
luarec tests: double instructions performed to test timeout
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Mon, 23 Apr 2018 10:39:29 +0000 (12:39 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Mon, 23 Apr 2018 11:45:17 +0000 (13:45 +0200)
regression-tests.auth-py/test_LuaRecords.py

index 0e046a1e0fa4e69d5d89f0074eb9fc1d04bc6884..f812b479e8f66c9f7e920274f4eec4d374914f69 100644 (file)
@@ -52,7 +52,7 @@ v6-bogus.rand.example.org.   3600 IN LUA  AAAA  "pickrandom({{'{prefix}.101', '{
 v6.rand.example.org.         3600 IN LUA  AAAA  "pickrandom({{'2001:db8:a0b:12f0::1', 'fe80::2a1:9bff:fe9b:f268'}})"
 closest.geo                  3600 IN LUA  A     "pickclosest({{'1.1.1.2','1.2.3.4'}})"
 empty.rand.example.org.      3600 IN LUA  A     "pickrandom()"
-timeout.example.org.         3600 IN LUA  A     "; local i = 0 ;  while i < 500 do i = i + 1 end return '1.2.3.4'"
+timeout.example.org.         3600 IN LUA  A     "; local i = 0 ;  while i < 1000 do pickrandom() ; i = i + 1 end return '1.2.3.4'"
 wrand.example.org.           3600 IN LUA  A     "pickwrandom({{ {{30, '{prefix}.102'}}, {{15, '{prefix}.103'}} }})"
 
 config    IN    LUA    LUA ("settings={{stringmatch='Programming in Lua'}} "