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) { ...@@ -278,10 +278,9 @@ TEST_F(RpcTest, Basic) {
request1.setJ(true); request1.setJ(true);
auto promise1 = request1.send(); auto promise1 = request1.send();
auto request2 = client.bazRequest(); // We used to call bar() after baz(), hence the numbering, but this masked the case where the
initTestMessage(request2.initS()); // RPC system actually disconnected on bar() (thus returning an exception, which we decided
auto promise2 = request2.send(); // was expected).
bool barFailed = false; bool barFailed = false;
auto request3 = client.barRequest(); auto request3 = client.barRequest();
auto promise3 = loop.there(request3.send(), auto promise3 = loop.there(request3.send(),
...@@ -291,6 +290,10 @@ TEST_F(RpcTest, Basic) { ...@@ -291,6 +290,10 @@ TEST_F(RpcTest, Basic) {
barFailed = true; barFailed = true;
}); });
auto request2 = client.bazRequest();
initTestMessage(request2.initS());
auto promise2 = request2.send();
EXPECT_EQ(0, restorer.callCount); EXPECT_EQ(0, restorer.callCount);
auto response1 = loop.wait(kj::mv(promise1)); 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