Skip to content

Commit 82c65e2

Browse files
committed
Update test
1 parent e9c0c29 commit 82c65e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_curl.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ function test_add_handle()
186186
c = nil
187187

188188
if i == 3 then
189-
assert_equal(curl.error(curl.ERROR_EASY, curl.E_UNSUPPORTED_PROTOCOL), data)
189+
if is_curl_ge(7, 62,0) then
190+
assert_equal(curl.error(curl.ERROR_EASY, curl.E_URL_MALFORMAT), data)
191+
else
192+
assert_equal(curl.error(curl.ERROR_EASY, curl.E_UNSUPPORTED_PROTOCOL), data)
193+
end
190194
else
191195
local data = json_data()
192196
assert_table(data.args)

0 commit comments

Comments
 (0)