aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_entryconn.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-10-04 16:22:49 -0400
committerNick Mathewson <nickm@torproject.org>2017-10-31 12:14:11 -0400
commit5dbcd48f0ee2f57557f6bcce6ee3ec11a76727e4 (patch)
tree72f3357325a41bef64b6ed18c5403a530c1155f2 /src/test/test_entryconn.c
parent469ee6e6fe0dbc9bb7b3c8ceed8aa7c494fd4ac3 (diff)
downloadtor-5dbcd48f0ee2f57557f6bcce6ee3ec11a76727e4.tar.gz
tor-5dbcd48f0ee2f57557f6bcce6ee3ec11a76727e4.zip
hs-v3: Attempt descriptor refetch when dirinfo changes
When the directory information changes, callback to the HS client subsystem so it can check if any pending SOCKS connections are waiting for a descriptor. If yes, attempt a refetch for those. Fixes #23762 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_entryconn.c')
-rw-r--r--src/test/test_entryconn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test_entryconn.c b/src/test/test_entryconn.c
index 86c0c3dca4..c29b1a7126 100644
--- a/src/test/test_entryconn.c
+++ b/src/test/test_entryconn.c
@@ -790,8 +790,9 @@ test_entryconn_rewrite_onion_v3(void *arg)
retval = connection_ap_handshake_rewrite_and_attach(conn, NULL, NULL);
tt_int_op(retval, OP_EQ, 0);
- /* Check connection state after rewrite */
- tt_int_op(ENTRY_TO_CONN(conn)->state, OP_EQ, AP_CONN_STATE_CIRCUIT_WAIT);
+ /* Check connection state after rewrite. It should be in waiting for
+ * descriptor state. */
+ tt_int_op(ENTRY_TO_CONN(conn)->state, OP_EQ, AP_CONN_STATE_RENDDESC_WAIT);
/* check that the address got rewritten */
tt_str_op(conn->socks_request->address, OP_EQ,
"25njqamcweflpvkl73j4szahhihoc4xt3ktcgjnpaingr5yhkenl5sid");