Skip to content

Commit

Permalink
Fix shadowed
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Nov 27, 2023
1 parent b946557 commit baa8dcd
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/cmd/gz_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ TEST(gzTest, GZ_UTILS_TEST_DISABLED_ON_MAC(TopicList))
auto proc = gz::utils::Subprocess({kTwoProcsPublisherExe, g_partition});

auto output = exec_with_retry({"topic", "-l"},
[](auto proc){
return proc.cout == "/foo\n";
[](auto procOut){
return procOut.cout == "/foo\n";
});

EXPECT_TRUE(output);
Expand All @@ -121,8 +121,8 @@ TEST(gzTest, TopicInfo)
auto proc = gz::utils::Subprocess({kTwoProcsPublisherExe, g_partition});

auto output = exec_with_retry({"topic", "-t", "/foo", "-i"},
[](auto proc){
return proc.cout.size() > 50u;
[](auto procOut){
return procOut.cout.size() > 50u;
});


Expand All @@ -141,8 +141,8 @@ TEST(gzTest, ServiceList)
auto proc = gz::utils::Subprocess({kTwoProcsSrvCallReplierExe, g_partition});

auto output = exec_with_retry({"service", "-l"},
[](auto proc){
return proc.cout == "/foo\n";
[](auto procOut){
return procOut.cout == "/foo\n";
});

EXPECT_TRUE(output);
Expand All @@ -156,8 +156,8 @@ TEST(gzTest, ServiceInfo)
auto proc = gz::utils::Subprocess({kTwoProcsSrvCallReplierExe, g_partition});

auto output = exec_with_retry({"service", "-s", "/foo", "-i"},
[](auto proc){
return proc.cout.size() > 50u;
[](auto procOut){
return procOut.cout.size() > 50u;
});

ASSERT_TRUE(output);
Expand All @@ -180,8 +180,8 @@ TEST(gzTest, TopicListSameProc)
EXPECT_TRUE(pub.Publish(msg));

auto output = exec_with_retry({"topic", "-l"},
[](auto proc){
return proc.cout == "/foo\n";
[](auto procOut){
return procOut.cout == "/foo\n";
});

EXPECT_TRUE(output);
Expand All @@ -203,8 +203,8 @@ TEST(gzTest, TopicInfoSameProc)
EXPECT_TRUE(pub.Publish(msg));

auto output = exec_with_retry({"topic", "-t", "/foo", "-i"},
[](auto proc){
return proc.cout.size() > 50u;
[](auto procOut){
return procOut.cout.size() > 50u;
});

ASSERT_TRUE(output);
Expand All @@ -219,8 +219,8 @@ TEST(gzTest, ServiceListSameProc)
EXPECT_TRUE(node.Advertise("/foo", srvEcho));

auto output = exec_with_retry({"service", "-l"},
[](auto proc){
return proc.cout == "/foo\n";
[](auto procOut){
return procOut.cout == "/foo\n";
});

EXPECT_TRUE(output);
Expand All @@ -234,8 +234,8 @@ TEST(gzTest, ServiceInfoSameProc)
EXPECT_TRUE(node.Advertise("/foo", srvEcho));

auto output = exec_with_retry({"service", "-s", "/foo", "-i"},
[](auto proc){
return proc.cout.size() > 50u;
[](auto procOut){
return procOut.cout.size() > 50u;
});

ASSERT_TRUE(output);
Expand Down

0 comments on commit baa8dcd

Please sign in to comment.