diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-06 13:52:54 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-06 13:52:54 -0500 |
commit | cf2ac8e2556849fdcace74adf36da876f86af30a (patch) | |
tree | 84a0f7f21309374f148760d0c416c5ae49803575 /src/test/test_buffers.c | |
parent | 6f7a8f84d906a0a9d5fd88e49d352bb748a36b09 (diff) | |
parent | 734ba5cb0a0b6cc5376f8889305835224d814252 (diff) | |
download | tor-cf2ac8e2556849fdcace74adf36da876f86af30a.tar.gz tor-cf2ac8e2556849fdcace74adf36da876f86af30a.zip |
Merge remote-tracking branch 'public/feature11791'
Diffstat (limited to 'src/test/test_buffers.c')
-rw-r--r-- | src/test/test_buffers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_buffers.c b/src/test/test_buffers.c index 875da7028f..101f448472 100644 --- a/src/test/test_buffers.c +++ b/src/test/test_buffers.c @@ -611,7 +611,7 @@ test_buffers_zlib_impl(int finalize_with_nil) int done; buf = buf_new_with_capacity(128); /* will round up */ - zlib_state = tor_zlib_new(1, ZLIB_METHOD); + zlib_state = tor_zlib_new(1, ZLIB_METHOD, HIGH_COMPRESSION); msg = tor_malloc(512); crypto_rand(msg, 512); @@ -688,7 +688,7 @@ test_buffers_zlib_fin_at_chunk_end(void *arg) tt_uint_op(buf->head->datalen, OP_EQ, headerjunk); tt_uint_op(buf_datalen(buf), OP_EQ, headerjunk); /* Write an empty string, with finalization on. */ - zlib_state = tor_zlib_new(1, ZLIB_METHOD); + zlib_state = tor_zlib_new(1, ZLIB_METHOD, HIGH_COMPRESSION); tt_int_op(write_to_buf_zlib(buf, zlib_state, "", 0, 1), OP_EQ, 0); in_len = buf_datalen(buf); |