aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_asio_stream.cpp
diff options
context:
space:
mode:
authorTim Oesterreich <[email protected]>2019-03-06 17:09:37 +0100
committerHannes Rantzsch <[email protected]>2019-04-16 10:48:14 +0200
commitfb373394350cbe4f04d6958ffa8f33882f690b1e (patch)
treee40b6cc5c3f477f45ba9a95ec0636b930e3f7cd5 /src/tests/unit_asio_stream.cpp
parentb1acdbfe4f6ed49691dc16e74bd8906bedf3c625 (diff)
async_write_some returns amount of bytes commited to the core, instead of bytes sent on the wire; do not use boost::asio::async_read/write
Diffstat (limited to 'src/tests/unit_asio_stream.cpp')
-rw-r--r--src/tests/unit_asio_stream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/unit_asio_stream.cpp b/src/tests/unit_asio_stream.cpp
index 9800dfc32..dcb0783de 100644
--- a/src/tests/unit_asio_stream.cpp
+++ b/src/tests/unit_asio_stream.cpp
@@ -671,7 +671,7 @@ class Asio_Stream_Tests final : public Test
auto write_handler = [&](const error_code &ec, std::size_t bytes_transferred)
{
- result.test_eq("didn't transfer anything", bytes_transferred, 0);
+ result.test_eq("committed some bytes to the core", bytes_transferred, TEST_DATA_SIZE);
result.confirm("propagates error code", ec == net::error::eof);
};