mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'bug25552_ope_squashed'
This commit is contained in:
@@ -259,8 +259,7 @@ test_get_start_time_of_current_run(void *arg)
|
||||
¤t_time);
|
||||
tt_int_op(retval, OP_EQ, 0);
|
||||
voting_schedule_recalculate_timing(get_options(), current_time);
|
||||
run_start_time =
|
||||
sr_state_get_start_time_of_current_protocol_run(current_time);
|
||||
run_start_time = sr_state_get_start_time_of_current_protocol_run();
|
||||
|
||||
/* Compare it with the correct result */
|
||||
format_iso_time(tbuf, run_start_time);
|
||||
@@ -272,8 +271,7 @@ test_get_start_time_of_current_run(void *arg)
|
||||
¤t_time);
|
||||
tt_int_op(retval, OP_EQ, 0);
|
||||
voting_schedule_recalculate_timing(get_options(), current_time);
|
||||
run_start_time =
|
||||
sr_state_get_start_time_of_current_protocol_run(current_time);
|
||||
run_start_time = sr_state_get_start_time_of_current_protocol_run();
|
||||
|
||||
/* Compare it with the correct result */
|
||||
format_iso_time(tbuf, run_start_time);
|
||||
@@ -285,8 +283,7 @@ test_get_start_time_of_current_run(void *arg)
|
||||
¤t_time);
|
||||
tt_int_op(retval, OP_EQ, 0);
|
||||
voting_schedule_recalculate_timing(get_options(), current_time);
|
||||
run_start_time =
|
||||
sr_state_get_start_time_of_current_protocol_run(current_time);
|
||||
run_start_time = sr_state_get_start_time_of_current_protocol_run();
|
||||
|
||||
/* Compare it with the correct result */
|
||||
format_iso_time(tbuf, run_start_time);
|
||||
@@ -308,8 +305,7 @@ test_get_start_time_of_current_run(void *arg)
|
||||
¤t_time);
|
||||
tt_int_op(retval, OP_EQ, 0);
|
||||
voting_schedule_recalculate_timing(get_options(), current_time);
|
||||
run_start_time =
|
||||
sr_state_get_start_time_of_current_protocol_run(current_time);
|
||||
run_start_time = sr_state_get_start_time_of_current_protocol_run();
|
||||
|
||||
/* Compare it with the correct result */
|
||||
format_iso_time(tbuf, run_start_time);
|
||||
@@ -342,7 +338,7 @@ test_get_start_time_functions(void *arg)
|
||||
|
||||
voting_schedule_recalculate_timing(get_options(), now);
|
||||
time_t start_time_of_protocol_run =
|
||||
sr_state_get_start_time_of_current_protocol_run(now);
|
||||
sr_state_get_start_time_of_current_protocol_run();
|
||||
tt_assert(start_time_of_protocol_run);
|
||||
|
||||
/* Check that the round start time of the beginning of the run, is itself */
|
||||
|
||||
Reference in New Issue
Block a user