Commit 3070f627 authored by Kenton Varda's avatar Kenton Varda

Implement handling of Resolve messages. Though currently they are never sent.

parent e4a5344b
......@@ -278,10 +278,9 @@ TEST_F(RpcTest, Basic) {
request1.setJ(true);
auto promise1 = request1.send();
auto request2 = client.bazRequest();
initTestMessage(request2.initS());
auto promise2 = request2.send();
// We used to call bar() after baz(), hence the numbering, but this masked the case where the
// RPC system actually disconnected on bar() (thus returning an exception, which we decided
// was expected).
bool barFailed = false;
auto request3 = client.barRequest();
auto promise3 = loop.there(request3.send(),
......@@ -291,6 +290,10 @@ TEST_F(RpcTest, Basic) {
barFailed = true;
});
auto request2 = client.bazRequest();
initTestMessage(request2.initS());
auto promise2 = request2.send();
EXPECT_EQ(0, restorer.callCount);
auto response1 = loop.wait(kj::mv(promise1));
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment