Skip to content
Snippets Groups Projects
Commit 056bc285 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

test putEncrypted(pk)

parent b668d6ad
Branches
Tags
No related merge requests found
...@@ -230,6 +230,13 @@ DhtRunnerTester::testIdOps() { ...@@ -230,6 +230,13 @@ DhtRunnerTester::testIdOps() {
cv.notify_all(); cv.notify_all();
}); });
node1.putEncrypted(key, node2.getPublicKey(), dht::Value("yo"), [&](bool ok){
CPPUNIT_ASSERT(ok);
std::lock_guard<std::mutex> lk(mutex);
valueCount++;
cv.notify_all();
});
node2.listen<std::string>(key, [&](std::string&& value){ node2.listen<std::string>(key, [&](std::string&& value){
CPPUNIT_ASSERT_EQUAL("yo"s, value); CPPUNIT_ASSERT_EQUAL("yo"s, value);
std::lock_guard<std::mutex> lk(mutex); std::lock_guard<std::mutex> lk(mutex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment