Skip to content

Commit

Permalink
unittest: fix client integration test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-hanqing authored and ilixiaocui committed Oct 15, 2020
1 parent cbf00c2 commit 0583f42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions test/integration/client/chunkserver_exception_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,17 @@ class CSModuleException : public ::testing::Test {
ASSERT_NE(fd, -1);

// 8. 先睡眠10s,让chunkserver选出leader
std::this_thread::sleep_for(std::chrono::seconds(5));
std::this_thread::sleep_for(std::chrono::seconds(10));
}

void TearDown() {
::Close(fd);
UnInit();
ASSERT_EQ(0, cluster->StopCluster());
delete cluster;
system("rm -rf moduleException6 moduleException4 moduleException5");
system(
"rm -rf moduleException6 moduleException4 moduleException5 "
"module_exception_test_chunkserver.etcd");
}

void CreateOpenFileBackend() {
Expand Down
3 changes: 1 addition & 2 deletions test/integration/client/config/topo_example_1.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"logicalpools": [
{
"copysetnum": 300,
"copysetnum": 30,
"name": "logicalPool1",
"physicalpool": "pool1",
"replicasnum": 3,
Expand Down Expand Up @@ -40,4 +40,3 @@
}
]
}

0 comments on commit 0583f42

Please sign in to comment.