Skip to content

Commit

Permalink
Fix wrong UTF-8 encoding. (RedisLabs#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
yossigo committed Jul 19, 2021
1 parent 8951750 commit 511be52
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_server.c
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
)
Expand Down Expand Up @@ -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
)
Expand Down Expand Up @@ -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
)
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 511be52

Please sign in to comment.