|
@@ -33,6 +33,7 @@
|
|
|
#include "circuitlist.h"
|
|
|
#include "circuituse.h"
|
|
|
#include "crypto.h"
|
|
|
+#include "dirvote.h"
|
|
|
#include "networkstatus.h"
|
|
|
#include "nodelist.h"
|
|
|
#include "relay.h"
|
|
@@ -967,6 +968,7 @@ test_rotate_descriptors(void *arg)
|
|
|
ret = parse_rfc1123_time("Sat, 26 Oct 1985 14:00:00 UTC",
|
|
|
&mock_ns.fresh_until);
|
|
|
tt_int_op(ret, OP_EQ, 0);
|
|
|
+ dirvote_recalculate_timing(get_options(), mock_ns.valid_after);
|
|
|
|
|
|
|
|
|
* global map. */
|
|
@@ -1004,6 +1006,7 @@ test_rotate_descriptors(void *arg)
|
|
|
ret = parse_rfc1123_time("Sat, 27 Oct 1985 02:00:00 UTC",
|
|
|
&mock_ns.fresh_until);
|
|
|
tt_int_op(ret, OP_EQ, 0);
|
|
|
+ dirvote_recalculate_timing(get_options(), mock_ns.valid_after);
|
|
|
|
|
|
|
|
|
* meaning 00:00:00. */
|
|
@@ -1065,6 +1068,7 @@ test_build_update_descriptors(void *arg)
|
|
|
ret = parse_rfc1123_time("Sat, 26 Oct 1985 04:00:00 UTC",
|
|
|
&mock_ns.fresh_until);
|
|
|
tt_int_op(ret, OP_EQ, 0);
|
|
|
+ dirvote_recalculate_timing(get_options(), mock_ns.valid_after);
|
|
|
|
|
|
|
|
|
service = helper_create_service();
|