aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-10-31 14:07:41 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-10-31 14:07:41 -0400
commit33da5d7672dc7ac13ce2093a5789fb6bc48e4f86 (patch)
tree533d3e467110c6aec94fa8cd30a2f699fa61b453
parentce99ebf25d3aec18ad840062a949aca4f98c14e6 (diff)
downloadtor-33da5d7672dc7ac13ce2093a5789fb6bc48e4f86.tar.gz
tor-33da5d7672dc7ac13ce2093a5789fb6bc48e4f86.zip
test: Initialize the voting schedule in test_dir.c
Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r--src/test/test_dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index b920655db5..87b86c38b8 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -2379,6 +2379,7 @@ test_a_networkstatus(
sign_skey_2 = crypto_pk_new();
sign_skey_3 = crypto_pk_new();
sign_skey_leg1 = pk_generate(4);
+ dirvote_recalculate_timing(get_options(), now);
sr_state_init(0, 0);
tt_assert(!crypto_pk_read_private_key_from_string(sign_skey_1,