[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] test: Fix DoS heartbeat unit test after adding INTRO2



commit 1407e2b169bf187b77528417882a065a4e8f1e60
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date:   Wed Nov 6 08:09:35 2019 -0500

    test: Fix DoS heartbeat unit test after adding INTRO2
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
 src/test/test_status.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/test_status.c b/src/test/test_status.c
index 2fb2a7b24..aabe93452 100644
--- a/src/test/test_status.c
+++ b/src/test/test_status.c
@@ -449,12 +449,13 @@ NS(logv)(int severity, log_domain_mask_t domain,
     case 5:
       tt_int_op(severity, OP_EQ, LOG_NOTICE);
       tt_u64_op(domain, OP_EQ, LD_HEARTBEAT);
-      tt_str_op(format, OP_EQ, "DoS mitigation since startup:%s%s%s%s");
+      tt_str_op(format, OP_EQ, "DoS mitigation since startup:%s%s%s%s%s");
       tt_str_op(va_arg(ap, char *), OP_EQ,
                 " 0 circuits killed with too many cells.");
       tt_str_op(va_arg(ap, char *), OP_EQ, " [cc not enabled]");
       tt_str_op(va_arg(ap, char *), OP_EQ, " [conn not enabled]");
       tt_str_op(va_arg(ap, char *), OP_EQ, "");
+      tt_str_op(va_arg(ap, char *), OP_EQ, " 0 INTRODUCE2 rejected.");
       break;
     default:
       tt_abort_msg("unexpected call to logv()");  // TODO: prettyprint args



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits