From 7ba7e925ef76f76c509ea390eebcdfc210ab3754 Mon Sep 17 00:00:00 2001 From: Huanhuan Zheng <140379011+cherylsy@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:35:22 +0800 Subject: [PATCH] [=] fix massive header casetest error (#460) --- scripts/case_test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/case_test.sh b/scripts/case_test.sh index d1fdc735..a51097f6 100755 --- a/scripts/case_test.sh +++ b/scripts/case_test.sh @@ -1323,13 +1323,14 @@ fi killall test_server 2> /dev/null +sudo rm -rf stdlog ${SERVER_BIN} -l d -e -x 8 > /dev/null & sleep 1 clear_log rm -f test_session xqc_token tp_localhost echo -e "server amplification limit ...\c" -${CLIENT_BIN} -s 1024 -l d -t 3 -x 25 -1 >> clog +${CLIENT_BIN} -s 1024 -l d -t 3 -x 25 -1 >> stdlog enter_aal=`grep "amplification limit" slog` aal=`grep "blocked by anti amplification limit" slog` leave_aal=`grep "anti-amplification state unlock" slog` @@ -1343,12 +1344,13 @@ fi killall test_server 2> /dev/null +sudo rm -rf stdlog ${SERVER_BIN} -l e -e -x 10 > /dev/null & sleep 1 clear_log echo -e "massive requests with massive header ...\c" -${CLIENT_BIN} -l e -q 50 -n 100 -x 32 -E >> clog -result=`grep ">>>>>>>> pass:1" clog` +sudo ${CLIENT_BIN} -l e -q 50 -n 100 -x 32 -E >> stdlog +result=`grep ">>>>>>>> pass:1" stdlog` errlog=`grep_err_log` if [ -z "$errlog" ] && [ "$result" != "" ]; then echo ">>>>>>>> pass:1" @@ -1358,6 +1360,7 @@ else case_print_result "massive_requests_with_massive_header" "fail" fi +sudo rm -rf clog slog stdlog test_session xqc_token tp_localhost killall test_server 2> /dev/null ${SERVER_BIN} -l d -e -b > /dev/null & sleep 1