test: minor changes
This commit is contained in:
parent
742f8cd78e
commit
75b38dde01
@ -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>();
|
||||
|
||||
@ -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});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user