diff --git a/test/uvw/fs_req.cpp b/test/uvw/fs_req.cpp index bc64262c..854e2271 100644 --- a/test/uvw/fs_req.cpp +++ b/test/uvw/fs_req.cpp @@ -107,7 +107,7 @@ TEST(FsReq, Stat) { fsReq->on([](const auto &, auto &) { FAIL(); }); fileReq->on([](const auto &, auto &) { FAIL(); }); - fsReq->on([&](const auto &event, auto &req) { + fsReq->on([&](const auto &event, auto &) { if(event.type == uvw::fs_req::fs_type::STAT) { ASSERT_FALSE(checkFsStatEvent); checkFsStatEvent = true; @@ -160,7 +160,7 @@ TEST(FsReq, Lstat) { fsReq->on([](const auto &, auto &) { FAIL(); }); fileReq->on([](const auto &, auto &) { FAIL(); }); - fsReq->on([&](const auto &event, auto &req) { + fsReq->on([&](const auto &event, auto &) { if(event.type == uvw::fs_req::fs_type::LSTAT) { ASSERT_FALSE(checkFsLstatEvent); checkFsLstatEvent = true; @@ -214,7 +214,7 @@ TEST(FsReq, Rename) { fsReq->on([](const auto &, auto &) { FAIL(); }); fileReq->on([](const auto &, auto &) { FAIL(); }); - fsReq->on([&](const auto &event, auto &req) { + fsReq->on([&](const auto &event, auto &) { if(event.type == uvw::fs_req::fs_type::RENAME) { ASSERT_FALSE(checkFsRenameEvent); checkFsRenameEvent = true; @@ -265,7 +265,7 @@ TEST(FsReq, Access) { fsReq->on([](const auto &, auto &) { FAIL(); }); fileReq->on([](const auto &, auto &) { FAIL(); }); - fsReq->on([&](const auto &event, auto &req) { + fsReq->on([&](const auto &event, auto &) { if(event.type == uvw::fs_req::fs_type::ACCESS) { ASSERT_FALSE(checkFsAccessEvent); checkFsAccessEvent = true; @@ -315,7 +315,7 @@ TEST(FsReq, Chmod) { fsReq->on([](const auto &, auto &) { FAIL(); }); fileReq->on([](const auto &, auto &) { FAIL(); }); - fsReq->on([&](const auto &event, auto &req) { + fsReq->on([&](const auto &event, auto &) { if(event.type == uvw::fs_req::fs_type::CHMOD) { ASSERT_FALSE(checkFsChmodEvent); checkFsChmodEvent = true; @@ -365,7 +365,7 @@ TEST(FsReq, Utime) { fsReq->on([](const auto &, auto &) { FAIL(); }); fileReq->on([](const auto &, auto &) { FAIL(); }); - fsReq->on([&](const auto &event, auto &req) { + fsReq->on([&](const auto &event, auto &) { if(event.type == uvw::fs_req::fs_type::UTIME) { ASSERT_FALSE(checkFsUtimeEvent); checkFsUtimeEvent = true; @@ -600,7 +600,7 @@ TEST(FsReq, Realpath) { fsReq->on([](const auto &, auto &) { FAIL(); }); fileReq->on([](const auto &, auto &) { FAIL(); }); - fsReq->on([&](const auto &event, auto &req) { + fsReq->on([&](const auto &event, auto &) { if(event.type == uvw::fs_req::fs_type::REALPATH) { ASSERT_FALSE(checkFsRealpathEvent); ASSERT_NE(event.path, nullptr);