Browse Source

test: Initialize the voting schedule in test_dir.c

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet 6 years ago
parent
commit
33da5d7672
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/test/test_dir.c

+ 1 - 0
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,