Skip to content

Commit

Permalink
Fix test flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Sep 25, 2024
1 parent c437aaf commit b7ea0a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/test_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@

from hypothesis import given, note, strategies as st
from hypothesis.database import InMemoryExampleDatabase
from hypothesis.internal.intervalsets import IntervalSet

from hypofuzz.corpus import Arc, ConjectureResult, HowGenerated, Pool, Status

st.register_type_strategy(IntervalSet, st.builds(IntervalSet.from_string, st.text()))


def branches(
fnames=st.sampled_from("abc"), lines=st.integers(0, 3)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test(a, b, c):
@pytest.mark.parametrize("numprocesses", [1]) # consider multiprocess someday?
def test_end_to_end(numprocesses, tmp_path):
"""An end-to-end test to start the fuzzer and access the dashboard."""
test_fname = tmp_path / "test_demo.py"
test_fname = tmp_path / "test_demo2.py"
test_fname.write_text(TEST_CODE, encoding="utf-8")
dash_proc = entrypoint._fuzz_impl(
numprocesses=numprocesses,
Expand Down

0 comments on commit b7ea0a1

Please sign in to comment.