]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Test] Fix broken tests
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 25 Oct 2022 06:19:53 +0000 (07:19 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 25 Oct 2022 06:19:53 +0000 (07:19 +0100)
test/lua/unit/url.lua

index 46eeef277ab4c30f294424108ec10d840b0ecc52..b4168b4ebe08f11b21287eebd3ec9905cc2cf9f1 100644 (file)
@@ -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)