Skip to content

Commit

Permalink
rebase master
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyt committed May 17, 2019
1 parent 99fdff5 commit 377914d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/storage/test/StorageClientTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ TEST(StorageClientTest, VerticesInterfacesTest) {

// Let the system choose an available port for us
uint32_t localMetaPort = 0;

// for mockStorageServer MetaServerBasedPartManager, use ephemeral port
uint32_t localDataPort = network::NetworkUtils::getAvailablePort();

LOG(INFO) << "Start meta server....";
std::string metaPath = folly::stringPrintf("%s/meta", rootPath.path());
auto metaServerContext = meta::TestUtils::mockServer(localMetaPort, metaPath.c_str());
FLAGS_meta_server_addrs = folly::stringPrintf("127.0.0.1:%d", metaServerContext->port_);

LOG(INFO) << "Start data server....";

// for mockStorageServer MetaServerBasedPartManager, use ephemeral port
uint32_t localDataPort = network::NetworkUtils::getAvailablePort();
std::string dataPath = folly::stringPrintf("%s/data", rootPath.path());
auto sc = TestUtils::mockServer(dataPath.c_str(), localIp, localDataPort);

Expand Down

0 comments on commit 377914d

Please sign in to comment.