tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 2b7eec7590b46a1b11935a8cc0efcaffd83926a3
parent acb5b0d535dae67b6a85780b4ae54bcf415e79fc
Author: teor <teor@torproject.org>
Date:   Tue, 18 Feb 2020 12:07:51 +1000

test/dir: Update the tests for late vote rejection

Part of 4631.

Diffstat:
Msrc/test/test_dir_handle_get.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c @@ -2084,8 +2084,8 @@ test_dir_handle_get_status_vote_d(void* data) const char *msg_out = NULL; int status_out = 0; - struct pending_vote_t *pv = dirvote_add_vote(VOTE_BODY_V3, &msg_out, - &status_out); + struct pending_vote_t *pv = dirvote_add_vote(VOTE_BODY_V3, 0, + &msg_out, &status_out); tt_assert(pv); status_vote_current_d_test(&header, &body, &body_used); @@ -2459,8 +2459,8 @@ test_dir_handle_get_status_vote_next_authority(void* data) time_t now = 1441223455 -1; voting_schedule_recalculate_timing(mock_options, now); - struct pending_vote_t *vote = dirvote_add_vote(VOTE_BODY_V3, &msg_out, - &status_out); + struct pending_vote_t *vote = dirvote_add_vote(VOTE_BODY_V3, 0, + &msg_out, &status_out); tt_assert(vote); MOCK(get_my_v3_authority_cert, get_my_v3_authority_cert_m); @@ -2619,8 +2619,8 @@ test_dir_handle_get_status_vote_current_authority(void* data) time_t now = 1441223455; voting_schedule_recalculate_timing(mock_options, now-1); - struct pending_vote_t *vote = dirvote_add_vote(VOTE_BODY_V3, &msg_out, - &status_out); + struct pending_vote_t *vote = dirvote_add_vote(VOTE_BODY_V3, 0, + &msg_out, &status_out); tt_assert(vote); // move the pending vote to previous vote