Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
RedisLabs Raft
Commits
511be52e
Unverified
Commit
511be52e
authored
Jul 19, 2021
by
Yossi Gottlieb
Committed by
GitHub
Jul 19, 2021
Browse files
Fix wrong UTF-8 encoding. (#18)
parent
8951750d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_server.c
View file @
511be52e
...
...
@@ -370,7 +370,7 @@ void TestRaft_server_wont_apply_entry_if_there_isnt_a_majority(CuTest* tc)
}
/* If commitidx > lastApplied: increment lastApplied, apply log[lastApplied]
* to state machine (5.3) */
* to state machine (
§
5.3) */
void
TestRaft_server_increment_lastApplied_when_lastApplied_lt_commitidx
(
CuTest
*
tc
)
{
...
...
@@ -727,7 +727,7 @@ void TestRaft_server_recv_requestvote_response_must_be_candidate_to_receive(
CuAssertTrue
(
tc
,
0
==
raft_get_nvotes_for_me
(
r
));
}
/* Reply false if term < currentTerm (5.1) */
/* Reply false if term < currentTerm (
§
5.1) */
void
TestRaft_server_recv_requestvote_reply_false_if_term_less_than_current_term
(
CuTest
*
tc
)
...
...
@@ -785,7 +785,7 @@ void TestRaft_leader_recv_requestvote_does_not_step_down(
CuAssertIntEquals
(
tc
,
1
,
raft_get_current_leader
(
r
));
}
/* Reply true if term >= currentTerm (5.1) */
/* Reply true if term >= currentTerm (
§
5.1) */
void
TestRaft_server_recv_requestvote_reply_true_if_term_greater_than_or_equal_to_current_term
(
CuTest
*
tc
)
...
...
@@ -909,7 +909,7 @@ void TestRaft_server_recv_requestvote_depends_on_candidate_id(
}
/* If votedFor is null or candidateId, and candidate's log is at
* least as up-to-date as local log, grant vote (5.2, 5.4) */
* least as up-to-date as local log, grant vote (
§
5.2, §
5
.4) */
void
TestRaft_server_recv_requestvote_dont_grant_vote_if_we_didnt_vote_for_this_candidate
(
CuTest
*
tc
)
...
...
@@ -947,7 +947,7 @@ void TestRaft_server_recv_requestvote_dont_grant_vote_if_we_didnt_vote_for_this_
/* If requestvote is received within the minimum election timeout of
* hearing from a current leader, it does not update its term or grant its
* vote (6).
* vote (
§
6).
*/
void
TestRaft_server_recv_requestvote_ignore_if_master_is_fresh
(
CuTest
*
tc
)
{
...
...
@@ -2544,7 +2544,7 @@ void TestRaft_leader_retries_appendentries_with_decremented_NextIdx_log_inconsis
/*
* If there exists an N such that N > commitidx, a majority
* of matchidx[i] = N, and log[N].term == currentTerm:
* set commitidx = N (5.2, 5.4). */
* set commitidx = N (
§
5.2, §
5
.4). */
void
TestRaft_leader_append_entry_to_log_increases_idxno
(
CuTest
*
tc
)
{
raft_cbs_t
funcs
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment