commit 6a8bf02: [Test] Fix broken tests
Vsevolod Stakhov
vsevolod at rspamd.com
Tue Oct 25 10:14:08 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-10-25 07:19:53 +0100
URL: https://github.com/rspamd/rspamd/commit/6a8bf029f81d1f676ec439ca936a227face6855a (HEAD -> master)
[Test] Fix broken tests
---
test/lua/unit/url.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index 46eeef277..b4168b4eb 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -202,7 +202,7 @@ context("URL check functions", function()
local buf = ffi.new("uint8_t[?]", #v[1])
local sizbuf = ffi.new("size_t[1]")
ffi.copy(buf, v[1], #v[1])
- ffi.C.rspamd_http_normalize_path_inplace(buf, #v[1], sizbuf)
+ ffi.C.rspamd_normalize_path_inplace(buf, #v[1], sizbuf)
local res = ffi.string(buf, tonumber(sizbuf[0]))
assert_equal(v[2], res, 'expected ' .. v[2] .. ' but got ' .. res .. ' in path ' .. v[1])
end)
More information about the Commits
mailing list