Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Louise Poubel <[email protected]>
  • Loading branch information
methylDragon and chapulina authored Jun 3, 2022
1 parent debaee5 commit a9b1345
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/gz/transport/Discovery.hh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ namespace gz
// TODO(CH3): Deprecated. Remove on tock.
else if (env("IGN_IP", gzIp) && !gzIp.empty())
{
std::cout << "IGN_IP is deprecated and will be removed! "
std::cerr << "IGN_IP is deprecated and will be removed! "
<< "Use GZ_IP instead!" << std::endl;
this->hostInterfaces = {gzIp};
}
Expand Down
2 changes: 1 addition & 1 deletion src/CIface_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ int main(int argc, char **argv)
std::string partition = testing::getRandomNumber();

// Set the partition name for this process.
setenv("", partition.c_str(), 1);
setenv("GZ_PARTITION", partition.c_str(), 1);

// Enable verbose mode.
// setenv("IGN_VERBOSE", "1", 1);
Expand Down
2 changes: 1 addition & 1 deletion src/Discovery_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ TEST(DiscoveryTest, TestActivity)

//////////////////////////////////////////////////
/// \brief Check that a wrong GZ_IP value makes HostAddr() to return 127.0.0.1
TEST(DiscoveryTest, WronggzIp)
TEST(DiscoveryTest, WrongGzIp)
{
// Save the current value of GZ_IP environment variable.
std::string gzIp;
Expand Down
2 changes: 1 addition & 1 deletion src/NodeOptions_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ TEST(NodeOptionsTest, ignPartition)
transport::NodeOptions opts;
EXPECT_EQ(opts.Partition(), aPartition);

// A partition set by the user should overwrite .
// A partition set by the user should overwrite GZ_PARTITION.
std::string userPartition = "userPartition";
opts.SetPartition(userPartition);
EXPECT_EQ(opts.Partition(), userPartition);
Expand Down

0 comments on commit a9b1345

Please sign in to comment.