/* test regression where read fails due to incorrect behaviour
when buffer is full before going to decrypt code */
i_stream_set_max_buffer_size(is, 8192);
- i_stream_read(is);
+ test_assert(i_stream_read(is) > 0);
struct istream *is_2 = i_stream_create_decrypt(is, test_v1_kp.priv);
size_t offset = 0;
counter = 1;
io_loop_run(ioloop);
- i_stream_read(right_in);
+ test_assert(i_stream_read(right_in) > 0);
test_assert(strcmp((const char*)i_stream_get_data(right_in, &bytes), "hello, world") == 0);
i_stream_skip(right_in, bytes);
counter = 1;
io_loop_run(ioloop);
- i_stream_read(left_in);
+ test_assert(i_stream_read(left_in) > 0);
test_assert(strcmp((const char*)i_stream_get_data(left_in, &bytes), "hello, world") == 0);
i_stream_skip(left_in, bytes);