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

dgoulet at torproject.org dgoulet at torproject.org
Wed Nov 6 15:34:03 UTC 2019


commit 1407e2b169bf187b77528417882a065a4e8f1e60
Author: David Goulet <dgoulet at torproject.org>
Date:   Wed Nov 6 08:09:35 2019 -0500

    test: Fix DoS heartbeat unit test after adding INTRO2
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 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





More information about the tor-commits mailing list