diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-13 08:22:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-15 11:17:22 -0500 |
commit | a0380b705daceb69c29ccda3a2f1453b9dcbc40d (patch) | |
tree | 4367f1e1481d3a42b655af792e9c66a1d3cda7b5 /src/test | |
parent | db53bfe8f74dad1b45ba381a5ee3366148a30237 (diff) | |
download | tor-a0380b705daceb69c29ccda3a2f1453b9dcbc40d.tar.gz tor-a0380b705daceb69c29ccda3a2f1453b9dcbc40d.zip |
Move control_per_second_events() into a callback with its own role
Part of making extra-dormant mode work; closes ticket 28421.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_periodic_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_periodic_event.c b/src/test/test_periodic_event.c index f63adf8e3a..6a3e320b2e 100644 --- a/src/test/test_periodic_event.c +++ b/src/test/test_periodic_event.c @@ -172,7 +172,8 @@ test_pe_launch(void *arg) for (int i = 0; periodic_events[i].name; ++i) { periodic_event_item_t *item = &periodic_events[i]; - tt_int_op(periodic_event_is_enabled(item), OP_EQ, 1); + tt_int_op(periodic_event_is_enabled(item), OP_EQ, + (item->roles != PERIODIC_EVENT_ROLE_CONTROLEV)); } done: |