Skip to content

Commit 8b04e0e

Browse files
committed
fix ci write file fail bug
1 parent 02e39b0 commit 8b04e0e

5 files changed

+9
-3
lines changed

test/integration/cluster_common/cluster_basic_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ TEST_F(ClusterBasicTest, test_start_stop_module2) {
173173
ASSERT_GT(pid, 0);
174174
// 初始化mdsclient
175175
MetaServerOption_t op;
176-
op.mdsRPCTimeoutMs = 500;
176+
op.mdsRPCTimeoutMs = 4000;
177177
op.metaaddrvec = std::vector<std::string>{ "127.0.0.1:3333" };
178178
ASSERT_EQ(0, curveCluster_->InitMdsClient(op));
179179

test/integration/raft/raft_snapshot_test.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class RaftSnapshotTest : public testing::Test {
165165

166166
// 配置默认raft client option
167167
defaultCliOpt_.max_retry = 3;
168-
defaultCliOpt_.timeout_ms = 3000;
168+
defaultCliOpt_.timeout_ms = 10000;
169169
}
170170

171171
virtual void TearDown() {
@@ -294,7 +294,7 @@ TEST_F(RaftSnapshotTest, AddPeerRecoverFromSnapshot) {
294294
ASSERT_EQ(0, cluster.StartPeer(peer4_,
295295
PeerCluster::PeerToId(peer4_)));
296296
status = AddPeer(logicPoolId, copysetId, conf, peer4_, defaultCliOpt_);
297-
ASSERT_TRUE(status.ok());
297+
ASSERT_TRUE(status.ok()) << status;
298298
// transfer leader 到peer4_,并读出来验证
299299
TransferLeaderAssertSuccess(&cluster, peer4_, defaultCliOpt_);
300300
leaderPeer = peer4_;

test/integration/snapshotcloneserver/snapshotcloneserver_common_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ const std::vector<std::string> snapshotcloneConf{
193193

194194
const std::vector<std::string> clientConfigOptions{
195195
std::string("mds.listen.addr=") + kMdsIpPort,
196+
std::string("global.logPath=") + kLogPath,
197+
std::string("mds.rpcTimeoutMS=4000"),
196198
};
197199

198200
const char* testFile1_ = "/ItUser1/file1";

test/integration/snapshotcloneserver/snapshotcloneserver_concurrent_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ const std::vector<std::string> snapshotcloneConf{
194194

195195
const std::vector<std::string> clientConfigOptions{
196196
std::string("mds.listen.addr=") + kMdsIpPort,
197+
std::string("global.logPath=") + kLogPath,
198+
std::string("mds.rpcTimeoutMS=4000"),
197199
};
198200

199201
const char* testFile1_ = "/concurrentItUser1/file1";

test/integration/snapshotcloneserver/snapshotcloneserver_recover_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ const std::vector<std::string> snapshotcloneConf{
220220

221221
const std::vector<std::string> clientConfigOptions{
222222
std::string("mds.listen.addr=") + kMdsIpPort,
223+
std::string("global.logPath=") + kLogPath,
224+
std::string("mds.rpcTimeoutMS=4000"),
223225
};
224226

225227
const char *testFile1_ = "/RcvItUser1/file1";

0 commit comments

Comments
 (0)