Skip to content

Commit

Permalink
Attempting to use onrecieve for invokemethod
Browse files Browse the repository at this point in the history
  • Loading branch information
agosh01 committed Jul 23, 2024
1 parent 6113553 commit c8bc1e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test_agent/cpp/src/APIWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ UStatus APIWrapper::handleInvokeMethodCommand(Document& jsonData) {
spdlog::error("APIWrapper rpc callback, Error received: {}",
status.message());
sendToTestManager(std::move(responseOrError).error(),
Constants::INVOKE_METHOD_COMMAND, strTest_id);
Constants::RESPONSE_ON_RECEIVE);
}
sendToTestManager(std::move(responseOrError).value(),
Constants::INVOKE_METHOD_COMMAND, strTest_id);
Constants::RESPONSE_ON_RECEIVE);
};

// Retrieve the rpc client as it is already added or existing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Feature: Testing Publish and Subscribe Functionality
And sends "invokemethod" request

Then the status received with "code" is "OK"
And "uE1" receives data field "payload" as b"type.googleapis.com/google.protobuf.Int32Value\x12\x02\x08\x03"
And "uE1" sends onreceive message with field "payload" b"type.googleapis.com/google.protobuf.Int32Value\x12\x02\x08\x03"

Examples:
| ignore | ignore |
Expand Down

0 comments on commit c8bc1e8

Please sign in to comment.