aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_shared_random.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-24 11:06:44 -0500
committerGeorge Kadianakis <desnacked@riseup.net>2020-03-03 14:35:01 +0200
commit9fb18756df3f76545f8f591881a95e1e09e735a0 (patch)
treeec3fc17cafd8df950a7d5704526fe3e428bd37ed /src/test/test_shared_random.c
parent7777f1df495c0f6f778a4d2378d5ddb89f985bda (diff)
downloadtor-9fb18756df3f76545f8f591881a95e1e09e735a0.tar.gz
tor-9fb18756df3f76545f8f591881a95e1e09e735a0.zip
Stop using all dirauth-only options in shared_random_client.c
This is not as clean a patch as I would like: see the comment on ASSUME_AUTHORITY_SCHEDULING. This issue here is that the unit tests sometimes assume that we are going to be looking at the dirauth options and behaving like a dirauth, but without setting the options to turn is into one. This isn't an issue for actually running Tor, as far as I can tell with chutney.
Diffstat (limited to 'src/test/test_shared_random.c')
-rw-r--r--src/test/test_shared_random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c
index 0e4328cb34..148eb5cf90 100644
--- a/src/test/test_shared_random.c
+++ b/src/test/test_shared_random.c
@@ -384,7 +384,7 @@ test_get_start_time_functions(void *arg)
tt_assert(start_time_of_protocol_run);
/* Check that the round start time of the beginning of the run, is itself */
- tt_int_op(get_start_time_of_current_round(), OP_EQ,
+ tt_int_op(dirauth_sched_get_cur_valid_after_time(), OP_EQ,
start_time_of_protocol_run);
done: