client Add NTURI version of rpc()
and consolidate with similar code for building pvRequest _options and put() builder.
This commit is contained in:
+21
-1
@@ -168,19 +168,39 @@ struct Tester {
|
||||
testSkip(1, "timeout");
|
||||
}
|
||||
}
|
||||
|
||||
void builder()
|
||||
{
|
||||
mbox.open(initial);
|
||||
serv.start();
|
||||
|
||||
|
||||
auto op = cli.rpc("mailbox")
|
||||
.arg("a", 5)
|
||||
.arg("b", "hello")
|
||||
.exec();
|
||||
|
||||
cli.hurryUp();
|
||||
|
||||
auto result = op->wait();
|
||||
|
||||
testEq(result["query.a"].as<int32_t>(), 5);
|
||||
testEq(result["query.b"].as<std::string>(), "hello");
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
MAIN(testrpc)
|
||||
{
|
||||
testPlan(14);
|
||||
testPlan(16);
|
||||
Tester().echo();
|
||||
Tester().lazy();
|
||||
Tester().null();
|
||||
Tester().timeout();
|
||||
Tester().cancel();
|
||||
Tester().error();
|
||||
Tester().builder();
|
||||
cleanup_for_valgrind();
|
||||
return testDone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user