Skip to content

Commit

Permalink
fix: don't automatically set TestCase.input_fname
Browse files Browse the repository at this point in the history
This should be done in the adapter if needed.
  • Loading branch information
tysmith committed Dec 5, 2024
1 parent 3996360 commit cec5060
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/grizzly/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .common.reporter import Reporter
from .common.storage import TestCase

__all__ = ("SessionError", "LogOutputLimiter", "Session")
__all__ = ("LogOutputLimiter", "Session", "SessionError")
__author__ = "Tyson Smith"
__credits__ = ["Tyson Smith", "Jesse Schwartzentruber"]

Expand Down
2 changes: 0 additions & 2 deletions src/grizzly/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def setup(self, input_path, _server_map):

def generate(self, testcase, _server_map):
assert testcase.adapter_name == self.name
testcase.input_fname = self.fuzz["input"]
testcase.add_from_bytes(b"test", testcase.entry_point)
if self.remaining is not None:
assert self.remaining > 0
Expand Down Expand Up @@ -101,7 +100,6 @@ def test_session_01(mocker, harness, profiling, coverage, relaunch, iters, runti
runtime_limit=runtime,
)
assert session.status.iteration == max_iters
assert session.status.test_name == "file.bin"
assert target.close.call_count == max_iters / relaunch
assert target.check_result.call_count == max_iters
assert target.handle_hang.call_count == 0
Expand Down

0 comments on commit cec5060

Please sign in to comment.