Skip to content

Commit

Permalink
resolved error in unit test see issue #230 (#231)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Staschulat (CR/ADA1.2) <[email protected]>
  • Loading branch information
JanStaschulat authored Dec 17, 2021
1 parent f79db48 commit 5ea1a2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rclc/test/rclc/test_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2603,7 +2603,8 @@ TEST_F(TestDefaultExecutor, executor_test_service_with_context) {
_results_initialize_service_client();
EXPECT_EQ(srv1_cnt, (unsigned int) 0);
EXPECT_EQ(srv1_value, (unsigned int) 0);
EXPECT_EQ(srv1_ctxt, (unsigned int) 42);
EXPECT_EQ(srv1_ctxt, (unsigned int) 42); // input value for context
EXPECT_EQ(srv1_id, (unsigned int) 0); // output value of context (in callback)

// spin executor, which will
// - receive request from client
Expand All @@ -2614,7 +2615,7 @@ TEST_F(TestDefaultExecutor, executor_test_service_with_context) {

EXPECT_EQ(srv1_cnt, (unsigned int) 1); // check that service callback was called
EXPECT_EQ(srv1_value, (unsigned int) 1); // check value of 'a' in request message
EXPECT_EQ(srv1_ctxt, (unsigned int) 42); // check context value
EXPECT_EQ(srv1_id, (unsigned int) 42); // check context value in callback

// spin executor, which will
// - receive response message from server
Expand Down

0 comments on commit 5ea1a2a

Please sign in to comment.