diff --git a/tests/unittest.cpp b/tests/unittest.cpp index c99fe5d7f..7da485c90 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -3929,8 +3929,8 @@ TEST_CASE("task_timer") b = true; }); - asio::steady_timer t(io_service); - asio::error_code ec; + asio::steady_timer t(io_context); + asio_error_code ec; t.expires_from_now(3 * timer.get_tick_length()); t.wait(ec);