Skip to content

Commit

Permalink
cleanup(tests): remove compilation warnings
Browse files Browse the repository at this point in the history
`resp_sandbox_container_info` variable is unused

Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 authored and poiana committed Dec 13, 2023
1 parent a84c3cd commit ea092b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ TEST_F(sinsp_with_test_input, container_parser_cri_containerd)
const auto &resp_container = resp.status();
const auto &resp_container_info = resp.info();
const auto &resp_sandbox_container = resp_pod.status();
const auto &resp_sandbox_container_info = resp_pod.info();
std::shared_ptr<sinsp_container_info> container_ptr = std::make_shared<sinsp_container_info>();
// explicit reference to mimic actual code flow and test sub parser functions
sinsp_container_info &container = *container_ptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ TEST_F(sinsp_with_test_input, container_parser_cri_crio)
const auto &resp_container = resp.status();
const auto &resp_container_info = resp.info();
const auto &resp_sandbox_container = resp_pod.status();
const auto &resp_sandbox_container_info = resp_pod.info();
std::shared_ptr<sinsp_container_info> container_ptr = std::make_shared<sinsp_container_info>();
// explicit reference to mimic actual code flow and test sub parser functions
sinsp_container_info &container = *container_ptr;
Expand Down

0 comments on commit ea092b0

Please sign in to comment.