diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-12 16:50:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-12 16:50:37 +0100 |
commit | b7c397e222b24041108bd972b267aff3c93d581a (patch) | |
tree | 488627d7b9e60cb0c784c3f547b65ca0d1f25b37 /test/functional/lua/tcp.lua | |
parent | 3a4242c276fc837ebe205148741a486a82937604 (diff) | |
download | rspamd-b7c397e222b24041108bd972b267aff3c93d581a.tar.gz rspamd-b7c397e222b24041108bd972b267aff3c93d581a.zip |
[Test] More test fixes
Diffstat (limited to 'test/functional/lua/tcp.lua')
-rw-r--r-- | test/functional/lua/tcp.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/lua/tcp.lua b/test/functional/lua/tcp.lua index dc26b2935..0d2ff0727 100644 --- a/test/functional/lua/tcp.lua +++ b/test/functional/lua/tcp.lua @@ -72,20 +72,20 @@ local function http_large_tcp_ssl_symbol(task) end local function ssl_read_cb(err, rep, conn) logger.errx(task, 'ssl_large_read_cb: got reply: %s, error: %s, conn: %s', rep, err, conn) - conn:add_write(ssl_read_post_cb, data) + conn:add_write(ssl_read_post_cb, 'foo\n') task:insert_result('TCP_SSL_LARGE', 1.0) end if task:get_queue_id() == 'SSL Large TCP request' then logger.errx(task, 'ssl_large_tcp_symbol: begin') - for i = 1,10 do + for i = 1,2 do local st = {} - for j=1,60000 do + for j=1,300000 do st[j] = 't' end - st[#st + 1] = '\n' data[i] = table.concat(st) end + data[#data + 1] = '\n' rspamd_tcp:request({ task = task, @@ -94,8 +94,10 @@ local function http_large_tcp_ssl_symbol(task) data = data, read = true, ssl = true, + stop_pattern = '\n', ssl_noverify = true, port = 14433, + timeout = 20, }) else logger.errx(task, 'ssl_large_tcp_symbol: skip') |