aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-03-15 10:35:31 -0400
committerDavid Goulet <dgoulet@ev0ke.net>2015-04-21 14:22:54 -0400
commitdd07c78524615738d9f326c34bea7b11bc1b1b88 (patch)
tree338036c3e8a2fecfac15e02ac10377510eeebaf7 /src/test/test_hs.c
parent3ec651c0a66b2da75c047f8937245fd97f01db4e (diff)
downloadtor-dd07c78524615738d9f326c34bea7b11bc1b1b88.tar.gz
tor-dd07c78524615738d9f326c34bea7b11bc1b1b88.zip
Test: fix HSFETCH control command with latest change
The expected message of the command now expects "650+" and "650 OK". Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/test/test_hs.c')
-rw-r--r--src/test/test_hs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c
index 130411efcb..4c43ebd604 100644
--- a/src/test/test_hs.c
+++ b/src/test/test_hs.c
@@ -193,8 +193,9 @@ test_hs_desc_event(void *arg)
char *exp_msg;
control_event_hs_descriptor_content(rend_query.onion_address, STR_DESC_ID,
HSDIR_EXIST_ID, hs_desc_content);
- tor_asprintf(&exp_msg, "650 HS_DESC_CONTENT " STR_HS_ADDR " " STR_DESC_ID \
- " " STR_HSDIR_EXIST_LONGNAME "\r\n%s\r\n.\r\n", hs_desc_content);
+ tor_asprintf(&exp_msg, "650+HS_DESC_CONTENT " STR_HS_ADDR " " STR_DESC_ID \
+ " " STR_HSDIR_EXIST_LONGNAME "\r\n%s\r\n.\r\n650 OK\r\n",
+ hs_desc_content);
tt_assert(received_msg);
tt_str_op(received_msg, OP_EQ, exp_msg);
tor_free(received_msg);