]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Test: fix HSFETCH control command with latest change
authorDavid Goulet <dgoulet@ev0ke.net>
Sun, 15 Mar 2015 14:35:31 +0000 (10:35 -0400)
committerDavid Goulet <dgoulet@ev0ke.net>
Tue, 21 Apr 2015 18:22:54 +0000 (14:22 -0400)
The expected message of the command now expects "650+" and "650 OK".

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
src/test/test_hs.c

index 130411efcbf85f3d06aea0ee7e8da918fa6d1d78..4c43ebd604884ec44e45fdc59e90146f1455db78 100644 (file)
@@ -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);