From c3537ce52f9b307fc15bb4c8fcea599a684e4e50 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 16 Jun 2017 15:46:16 +0200 Subject: [PATCH] Revert "me trying to solve the timing issue with WorkReq (damnit)" This reverts commit ab118fb712ea441f110a2126693afbf744827979. --- test/uvw/work.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/test/uvw/work.cpp b/test/uvw/work.cpp index d6511025..5f12c33c 100644 --- a/test/uvw/work.cpp +++ b/test/uvw/work.cpp @@ -64,18 +64,9 @@ TEST(Work, Cancellation) { checkWorkEvent = true; }); - auto launcher = [](auto &request) { - struct Cancel { - Cancel(uvw::WorkReq &req): req{req} {} - ~Cancel() { req.cancel(); } - uvw::WorkReq &req; - } cancel{request}; - - return request.queue(), (void)cancel; - }; - handle->start(); - launcher(*req); + req->queue(); + req->cancel(); loop->run(); ASSERT_TRUE(checkErrorEvent);