Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marven11 committed Feb 14, 2024
1 parent 33b195a commit e6f6722
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions tests/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export VULUNSERVER_ADDR="http://127.0.0.1:5000"
export SLEEP_INTERVAL=0.002
python vulunserver.py 2>/dev/null &
vulserver_pid=$!
trap "trap - SIGTERM && kill $vulserver_pid" SIGINT SIGTERM EXIT
python -m unittest test_cracker.TestHard7
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from fenjing import cli, waf_func_gen, options
import tempfile

SLEEP_INTERVAL = float(os.environ.get("SLEEP_INTERVAL", 0.002))
SLEEP_INTERVAL = float(os.environ.get("SLEEP_INTERVAL", 0.01))
VULUNSERVER_ADDR = os.environ["VULUNSERVER_ADDR"]
waf_func_gen.logger.setLevel(logging.ERROR)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import os

VULUNSERVER_ADDR = os.environ["VULUNSERVER_ADDR"]
SLEEP_INTERVAL = float(os.environ.get("SLEEP_INTERVAL", 0.002))
SLEEP_INTERVAL = float(os.environ.get("SLEEP_INTERVAL", 0.01))

class WrappedSubmitter(Submitter):
def __init__(self, subm, blacklist):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_full_payload_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def setUp(self) -> None:
],
k=25,
)
for _ in range(200)
for _ in range(50)
]
self.full_payload_gens = [
get_full_payload_gen(
Expand Down

0 comments on commit e6f6722

Please sign in to comment.