aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_controller_events.c
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2018-12-15 22:14:46 -0600
committerNick Mathewson <nickm@torproject.org>2018-12-21 14:15:35 -0500
commit936c93e562deaba62f0d32f7e7fda770c5604318 (patch)
tree66320e5dcffecd423cf3d73fba17f2a5c1c243a4 /src/test/test_controller_events.c
parent9d29abb34e005f4e836976a4c00115a1e8977071 (diff)
downloadtor-936c93e562deaba62f0d32f7e7fda770c5604318.tar.gz
tor-936c93e562deaba62f0d32f7e7fda770c5604318.zip
Hook up control_event_bootstrap() to btrack_orconn
Replace a few invocations of control_event_bootstrap() with calls from the bootstrap tracker subsystem. This mostly leaves behavior unchanged. The actual behavior changes come in the next commit. Part of ticket 27167.
Diffstat (limited to 'src/test/test_controller_events.c')
-rw-r--r--src/test/test_controller_events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_controller_events.c b/src/test/test_controller_events.c
index 4c404876b0..63013390e4 100644
--- a/src/test/test_controller_events.c
+++ b/src/test/test_controller_events.c
@@ -353,7 +353,7 @@ test_cntev_dirboot_defer_desc(void *arg)
assert_bootmsg("0 TAG=starting");
control_event_bootstrap(BOOTSTRAP_STATUS_CONN_DIR, 0);
assert_bootmsg("5 TAG=conn_dir");
- control_event_bootstrap(BOOTSTRAP_STATUS_HANDSHAKE, 0);
+ control_event_bootstrap(BOOTSTRAP_STATUS_HANDSHAKE_DIR, 0);
assert_bootmsg("10 TAG=handshake_dir");
/* The deferred event should appear */
control_event_boot_first_orconn();
@@ -378,7 +378,7 @@ test_cntev_dirboot_defer_orconn(void *arg)
assert_bootmsg("0 TAG=starting");
control_event_bootstrap(BOOTSTRAP_STATUS_CONN_DIR, 0);
assert_bootmsg("5 TAG=conn_dir");
- control_event_bootstrap(BOOTSTRAP_STATUS_HANDSHAKE, 0);
+ control_event_bootstrap(BOOTSTRAP_STATUS_HANDSHAKE_DIR, 0);
assert_bootmsg("10 TAG=handshake_dir");
/* The deferred event should appear */
control_event_boot_first_orconn();