diff --git a/tests/unittest.cpp b/tests/unittest.cpp index 3383480fa..3150885eb 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -3840,8 +3840,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);