1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
From: Sophie Brun <sophie@freexian.com>
Date: Thu, 7 Nov 2019 11:32:38 +0100
Subject: Drop tests trying to access to network
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847842
Forwarded: not-needed
Last-Update: 2016-12-12
Last-Update: 2016-12-12
---
test/test.lua | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/test.lua b/test/test.lua
index 691d43c..d5cd635 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -177,7 +177,7 @@ do
for _, geodb in ipairs { geodb_country, geodb_city } do
local checker = checkers[geodb]
- checker(geodb, "query_by_name", "google-public-dns-a.google.com")
+-- checker(geodb, "query_by_name", "google-public-dns-a.google.com")
checker(geodb, "query_by_addr", "8.8.8.8")
checker(geodb, "query_by_ipnum", 134744072) -- 8.8.8.8
end
@@ -265,6 +265,7 @@ for i = 1, #profiles do
)
end
+
local time_start = socket.gettime()
for i = 1, num_queries do
if i % 1e4 == 0 then
@@ -284,6 +285,7 @@ for i = 1, #profiles do
print()
end
+--[[ Disable test: access to network
do
print(p.name, "profiling name queries")
@@ -304,6 +306,7 @@ for i = 1, #profiles do
)
print()
end
+]]--
geodb:close()
end
|