Skip to content

Commit

Permalink
Fixed vesoft-inc#9: test failure in NetWorkUtilsTest (vesoft-inc#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor authored Sep 7, 2018
1 parent fd0c477 commit 476e7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/network/test/NetworkUtilsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using namespace vesoft::network;
TEST(NetworkUtils, getHostname) {
std::string hostname = NetworkUtils::getHostname();

FILE* fp = popen("LD_PRELOAD= hostname -f | tr -d ['\n']", "r");
FILE* fp = popen("LD_PRELOAD= hostname | tr -d ['\n']", "r");
char buffer[256];
fgets(buffer, sizeof(buffer), fp);
std::string hostnameCheck = buffer;
Expand Down

0 comments on commit 476e7fb

Please sign in to comment.