idbeta commented on a change in pull request #3667:
URL: https://github.com/apache/apisix/pull/3667#discussion_r583575318
##########
File path: t/fuzzing/public.py
##########
@@ -43,3 +44,27 @@ def check_process():
process = {p.pid for p in children if "cache loader process" not in
p.cmdline()[0]}
process.add(parent.pid)
return process
+
+def initfuzz():
+ fw = open(cur_dir() + "/test.log",'wb')
+ fuzz_loggers = [FuzzLoggerText(file_handle=fw)]
+ session = Session(
+ target=Target(
+ connection=TCPSocketConnection("127.0.0.1", 9080,
send_timeout=5.0, recv_timeout=5.0, server=False)
+ ),
+ fuzz_loggers=fuzz_loggers,
+ keep_web_open=False,
+ )
+ return session
+
+def runtest(create_route, run):
Review comment:
sure
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]