Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eos
QuarkDB
Commits
9d5b106d
Commit
9d5b106d
authored
Jun 22, 2018
by
Georgios Bitzes
Browse files
Fix a few more warnings
parent
12302c06
Pipeline
#424955
passed with stages
in 47 minutes and 43 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
test/raft.cc
View file @
9d5b106d
...
...
@@ -574,7 +574,9 @@ TEST_F(Raft_Election, basic_sanity) {
// term mismatch, can't perform election
RaftVoteRequest
votereq
;
votereq
.
lastIndex
=
1
;
votereq
.
term
=
1
;
votereq
.
lastTerm
=
0
;
ASSERT_FALSE
(
RaftElection
::
perform
(
votereq
,
*
state
(),
*
lease
(),
*
contactDetails
()));
// we have a leader already, can't do election
...
...
@@ -597,6 +599,7 @@ TEST_F(Raft_Election, leader_cannot_call_election) {
RaftVoteRequest
votereq
;
votereq
.
lastIndex
=
5
;
votereq
.
term
=
2
;
votereq
.
lastTerm
=
1
;
ASSERT_FALSE
(
RaftElection
::
perform
(
votereq
,
*
state
(),
*
lease
(),
*
contactDetails
()));
}
...
...
@@ -611,6 +614,8 @@ TEST_F(Raft_Election, observer_cannot_call_election) {
RaftVoteRequest
votereq
;
votereq
.
term
=
1
;
votereq
.
lastTerm
=
0
;
votereq
.
lastIndex
=
5
;
ASSERT_FALSE
(
RaftElection
::
perform
(
votereq
,
*
state
(),
*
lease
(),
*
contactDetails
()));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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