summaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-06 20:42:18 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-06 20:42:18 -0400
commitd14c245a0f3733fa6b33d3c7c44fc7fe0bfc302e (patch)
tree22ec019ac0043d6e004404af728037d033dbe7d5 /src/test/test.c
parentf36656cada48a2d9f51c857d8477a8060cb89b9d (diff)
downloadtor-d14c245a0f3733fa6b33d3c7c44fc7fe0bfc302e.tar.gz
tor-d14c245a0f3733fa6b33d3c7c44fc7fe0bfc302e.zip
Add unit test for ..get_start_of_next_voting_interval().
This functionality was covered only accidentally by our voting-test code, and as such wasn't actually tested at all. The tests that called it made its coverage nondeterministic, depending on what time of day you ran the tests. Closes ticket 26014.
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c
index b1e5345b3c..0ad33ec0c0 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -859,6 +859,7 @@ struct testgroup_t testgroups[] = {
{ "dir/", dir_tests },
{ "dir_handle_get/", dir_handle_get_tests },
{ "dir/md/", microdesc_tests },
+ { "dir/voting-schedule/", voting_schedule_tests },
{ "dos/", dos_tests },
{ "entryconn/", entryconn_tests },
{ "entrynodes/", entrynodes_tests },