diff --git a/tests/dhtproxytester.cpp b/tests/dhtproxytester.cpp index 1f128ef45b1a58d014b282be20c6b680d6ef7604..5f724549c17c4f69abe5cb6f2f68aab7c0c87495 100644 --- a/tests/dhtproxytester.cpp +++ b/tests/dhtproxytester.cpp @@ -116,10 +116,7 @@ DhtProxyTester::testListen() { // All values dht::Value secondVal {"You're a monster"}; auto secondVal_data = secondVal.data; - nodePeer.put(key, std::move(secondVal), [&](bool) { - done = true; - cv.notify_all(); - }); + nodePeer.put(key, std::move(secondVal)); cv.wait_for(lk, std::chrono::seconds(10), [&]{ return done; }); // Here values should contains 3 values CPPUNIT_ASSERT_EQUAL(static_cast<int>(values.size()), 2);