Skip to content

Commit 2cbac6e

Browse files
committed
Update test
1 parent d0dbfcd commit 2cbac6e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_curl.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ local scurl = require "cURL.safe"
1818
local json = require "dkjson"
1919
local fname = "./test.download"
2020

21-
local ENABLE = false
21+
local ENABLE = true
2222

23-
local _ENV = TEST_CASE'easy' if true or ENABLE then
23+
local _ENV = TEST_CASE'easy' if ENABLE then
2424

2525
local e1, e2
2626
function teardown()
@@ -29,6 +29,8 @@ function teardown()
2929
e1, e2 = nil
3030
end
3131

32+
if curl.OPT_STREAM_DEPENDS then
33+
3234
function test_easy_setopt_stream_depends_1()
3335
e1 = assert(scurl.easy())
3436
e2 = assert(scurl.easy())
@@ -93,6 +95,8 @@ function test_easy_setopt_stream_depends_e_4()
9395
end)
9496
end
9597

98+
end
99+
96100
function test_easy_setopt_share()
97101
e1 = assert(scurl.easy())
98102
e2 = assert(scurl.share())

0 commit comments

Comments
 (0)