Skip to content

Commit defdf29

Browse files
committed
ci: stabilize tests by increasing timeouts and disabling parallel ctest
1 parent 890f276 commit defdf29

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- name: Run Unit Tests
114114
run: |
115115
cd build
116-
ctest --output-on-failure --parallel $(nproc)
116+
ctest --output-on-failure
117117
118118
- name: Run Distributed Tests
119119
run: |

tests/multi_raft_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ TEST(MultiRaftTests, LeaderElectionAndFailover) {
128128
rms[i]->start();
129129
}
130130

131-
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
131+
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
132132

133133
int leaders = 0;
134134
int leader_idx = -1;
@@ -146,7 +146,7 @@ TEST(MultiRaftTests, LeaderElectionAndFailover) {
146146
rms[leader_idx]->stop();
147147
rpcs[leader_idx]->stop();
148148

149-
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
149+
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
150150

151151
int new_leaders = 0;
152152
for (int i = 0; i < num_nodes; ++i) {

0 commit comments

Comments
 (0)