Skip to content

Commit c7eae14

Browse files
committed
fix tests
1 parent 3543cb1 commit c7eae14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/AuthPluginTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class SocketStream {
370370

371371
void mockZTS(Latch& latch, int port) {
372372
LOG_INFO("-- MockZTS started");
373-
ASIO::io_service io;
373+
ASIO::io_context io;
374374
ASIO::ip::tcp::acceptor acceptor(io, ASIO::ip::tcp::endpoint(ASIO::ip::tcp::v4(), port));
375375

376376
LOG_INFO("-- MockZTS waiting for connnection");

tests/ConsumerTest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class ConsumerTest {
4646
return nullptr;
4747
}
4848
auto timer = cnx->executor_->createDeadlineTimer();
49-
timer->expires_from_now(delaySinceStartGrabCnx -
50-
std::chrono::milliseconds(impl->connectionTimeMs_ + 50));
49+
timer->expires_after(delaySinceStartGrabCnx -
50+
std::chrono::milliseconds(impl->connectionTimeMs_ + 50));
5151
timer->async_wait([cnx](const ASIO_ERROR&) { cnx->close(); });
5252
return timer;
5353
}

0 commit comments

Comments
 (0)