Skip to content

Commit

Permalink
fix ut and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
critical27 committed May 30, 2019
1 parent 74061c8 commit 3c72ef0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/graph/test/SchemaTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ TEST_F(SchemaTest, metaCommunication) {
cpp2::ExecutionResponse resp;
std::string query = "SHOW HOSTS";
client->execute(query, resp);
std::vector<uniform_tuple_t<std::string, 2>> expected{
{"127.0.0.1", "1000"},
{"127.0.0.1", "1100"},
std::vector<uniform_tuple_t<std::string, 3>> expected{
{"127.0.0.1", "1000", "online"},
{"127.0.0.1", "1100", "online"},
};
ASSERT_TRUE(verifyResult(resp, expected));
}
Expand Down
2 changes: 1 addition & 1 deletion src/meta/processors/BaseProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class BaseProcessor {
StatusOr<std::vector<nebula::cpp2::HostAddr>> allHosts();

/**
* Get all hosts
* Get all hosts with online/offline status.
* */
StatusOr<std::vector<cpp2::HostItem>> allHostsWithStatus();

Expand Down
4 changes: 2 additions & 2 deletions src/meta/test/HBProcessorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ using apache::thrift::FragileConstructor::FRAGILE;
TEST(HBProcessorTest, HBTest) {
fs::TempDir rootPath("/tmp/HBTest.XXXXXX");
std::unique_ptr<kvstore::KVStore> kv(TestUtils::initKV(rootPath.path()));
FLAGS_expired_hosts_check_interval_sec = 1;
FLAGS_expired_threshold_sec = 1;
{
std::vector<nebula::cpp2::HostAddr> thriftHosts;
for (auto i = 0; i < 10; i++) {
Expand All @@ -51,8 +53,6 @@ TEST(HBProcessorTest, HBTest) {
}
}
{
FLAGS_expired_hosts_check_interval_sec = 1;
FLAGS_expired_threshold_sec = 1;
for (auto i = 0; i < 5; i++) {
cpp2::HBReq req;
nebula::cpp2::HostAddr thriftHost(FRAGILE, i, i);
Expand Down

0 comments on commit 3c72ef0

Please sign in to comment.