Skip to content

Commit

Permalink
Correction for sonarcloud test
Browse files Browse the repository at this point in the history
  • Loading branch information
elandini84 committed Sep 15, 2023
1 parent 82b44ea commit fb9efea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/devices/chatBot_nwc_yarp/tests/chatBot_nwc_yarp_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ TEST_CASE("dev::ChatBot_nwc", "[yarp::dev]")
pdev_cfg.put("device", "fakeChatBotDevice");
REQUIRE(ddfake.open(pdev_cfg));

{yarp::dev::WrapperSingle* ww_nws; ddnws.view(ww_nws);
{yarp::dev::WrapperSingle* ww_nws;
REQUIRE(ddnws.view(ww_nws));
bool result_att = ww_nws->attach(&ddfake);
REQUIRE(result_att); }

Expand Down
3 changes: 2 additions & 1 deletion src/devices/chatBot_nws_yarp/tests/chatBot_nws_yarp_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ TEST_CASE("dev::chatBot_nws_yarp", "[yarp::dev]")
pdev_cfg.put("device", "fakeChatBotDevice");
REQUIRE(ddfake.open(pdev_cfg));

{yarp::dev::WrapperSingle* ww_nws; ddnws.view(ww_nws);
{yarp::dev::WrapperSingle* ww_nws;
REQUIRE(ddnws.view(ww_nws));
bool result_att = ww_nws->attach(&ddfake);
REQUIRE(result_att); }
}
Expand Down

0 comments on commit fb9efea

Please sign in to comment.