]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix unit tests to pass after fix for #8879
authorNick Mathewson <nickm@torproject.org>
Wed, 15 May 2013 18:34:59 +0000 (14:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 15 May 2013 18:34:59 +0000 (14:34 -0400)
src/test/test.c

index 0e485339783cf1509e559e93709d141f714f2d88..3ff39e629341dc1ac2671e52b56e49b735f82c63 100644 (file)
@@ -468,7 +468,7 @@ test_socks_5_no_authenticate(void *ptr)
                                     get_options()->SafeSocks));
   test_eq(5, socks->socks_version);
   test_eq(2, socks->replylen);
-  test_eq(5, socks->reply[0]);
+  test_eq(1, socks->reply[0]);
   test_eq(0, socks->reply[1]);
 
   test_eq(2, socks->usernamelen);
@@ -507,7 +507,7 @@ test_socks_5_authenticate(void *ptr)
                                    get_options()->SafeSocks));
   test_eq(5, socks->socks_version);
   test_eq(2, socks->replylen);
-  test_eq(5, socks->reply[0]);
+  test_eq(1, socks->reply[0]);
   test_eq(0, socks->reply[1]);
 
   test_eq(2, socks->usernamelen);
@@ -547,7 +547,7 @@ test_socks_5_authenticate_with_data(void *ptr)
                                    get_options()->SafeSocks) == 1);
   test_eq(5, socks->socks_version);
   test_eq(2, socks->replylen);
-  test_eq(5, socks->reply[0]);
+  test_eq(1, socks->reply[0]);
   test_eq(0, socks->reply[1]);
 
   test_streq("2.2.2.2", socks->address);