aboutsummaryrefslogtreecommitdiff
path: root/test/httptest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/httptest.lua')
-rw-r--r--test/httptest.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index 4667605..8bf3980 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -49,8 +49,7 @@ local check_result = function(response, expect, ignore)
49 for i,v in response do 49 for i,v in response do
50 if not ignore[i] then 50 if not ignore[i] then
51 if v ~= expect[i] then 51 if v ~= expect[i] then
52 v = string.sub(type(v) == "string" and v or "", 1, 70) 52 print(string.sub(tostring(v), 1, 70))
53 print(v)
54 fail(i .. " differs!") 53 fail(i .. " differs!")
55 end 54 end
56 end 55 end
@@ -59,7 +58,7 @@ local check_result = function(response, expect, ignore)
59 if not ignore[i] then 58 if not ignore[i] then
60 if v ~= response[i] then 59 if v ~= response[i] then
61 v = string.sub(type(v) == "string" and v or "", 1, 70) 60 v = string.sub(type(v) == "string" and v or "", 1, 70)
62 print(v) 61 print(string.sub(tostring(v), 1, 70))
63 fail(i .. " differs!") 62 fail(i .. " differs!")
64 end 63 end
65 end 64 end