Commit e91d3e61 authored by Willem Thiart's avatar Willem Thiart
Browse files

Refactored test names

parent 9c07ad73
......@@ -331,10 +331,12 @@ int raft_recv_requestvote_response(raft_server_t* me, int node,
* Append the entry to the log
* Send appendentries to followers
* This function will block if it needs to append the message.
* Will fail:
* - if the server is not the leader
* @param node Index of the node who sent us this message
* @param[out] r The resulting response
* @param e The entry message
* @return 0 on success, -1 if the server is not the leader */
* @return 0 on success, -1 on failure */
int raft_recv_entry(raft_server_t* me, int node, msg_entry_t* e,
msg_entry_response_t *r);
......
......@@ -581,7 +581,7 @@ TestRaft_follower_recv_appendentries_updates_currentterm_if_term_gt_currentterm(
CuAssertTrue(tc, 1 == current_leader);
}
void TestRaft_follower_doesnt_log_after_appendentry_if_no_entries_are_specified(
void TestRaft_follower_recv_appendentries_does_not_log_if_no_entries_are_specified(
CuTest * tc)
{
void *r;
......@@ -610,7 +610,7 @@ void TestRaft_follower_doesnt_log_after_appendentry_if_no_entries_are_specified(
CuAssertTrue(tc, 0 == raft_get_log_count(r));
}
void TestRaft_follower_increases_log_after_appendentry(CuTest * tc)
void TestRaft_follower_recv_appendentries_increases_log(CuTest * tc)
{
void *r;
void *sender;
......@@ -1009,7 +1009,7 @@ void TestRaft_follower_becoming_candidate_resets_election_timeout(CuTest * tc)
CuAssertTrue(tc, raft_get_timeout_elapsed(r) < 900);
}
void TestRaft_follower_receiving_appendentries_resets_election_timeout(
void TestRaft_follower_recv_appendentries_resets_election_timeout(
CuTest * tc)
{
void *r;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment