test: minor changes

This commit is contained in:
Michele Caini 2022-04-07 12:01:05 +02:00
parent 742f8cd78e
commit 75b38dde01
2 changed files with 2 additions and 6 deletions

View File

@ -13,9 +13,7 @@ TEST(Pipe, ReadWrite) {
auto client = loop->resource<uvw::pipe_handle>();
server->on<uvw::error_event>([](const auto &, auto &) { FAIL(); });
client->on<uvw::error_event>([](const auto &, auto &) {
FAIL();
});
client->on<uvw::error_event>([](const auto &, auto &) { FAIL(); });
server->on<uvw::listen_event>([](const uvw::listen_event &, uvw::pipe_handle &handle) {
std::shared_ptr<uvw::pipe_handle> socket = handle.parent().resource<uvw::pipe_handle>();

View File

@ -124,9 +124,7 @@ TEST(Timer, BaseHandleWalk) {
auto timer = loop->resource<uvw::timer_handle>();
timer->on<uvw::timer_event>([](const auto &, uvw::timer_handle &handle) {
handle.parent().walk(uvw::overloaded{
[](uvw::timer_handle &h) { h.close(); },
[](auto &&) {}});
handle.parent().walk(uvw::overloaded{[](uvw::timer_handle &h) { h.close(); }, [](auto &&) {}});
});
timer->start(uvw::timer_handle::time{100}, uvw::timer_handle::time{100});