Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz committed Apr 24, 2020
1 parent b6d486c commit 6e550ae
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/core/tests/rpc_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,15 @@ TEST(core, message_ex)
request->add_ref();
request->release_ref();
}
}

{
using namespace dsn;
configuration_query_by_index_request request, result;
message_ptr msg = from_thrift_request_to_received_message(request, RPC_CODE_FOR_TEST);
for (int i = 0; i < 10; i++) {
unmarshall(msg, result);
msg->restore_read();
}
TEST(rpc_message, restore_read)
{
using namespace dsn;
configuration_query_by_index_request request, result;
message_ptr msg = from_thrift_request_to_received_message(request, RPC_CODE_FOR_TEST);
for (int i = 0; i < 10; i++) {
unmarshall(msg, result);
msg->restore_read();
}
}

0 comments on commit 6e550ae

Please sign in to comment.