Skip to content

Commit

Permalink
Make test faster by not bothering with 100s of processes
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic authored Jan 22, 2025
1 parent 6423200 commit 9074a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ def test_sanity(temp_output_dir: str) -> None:
subprocess.check_output(command, shell=True)


@pytest.mark.parametrize("num_children", [1, 10, 25, 101])
@pytest.mark.parametrize("num_children", [1, 2, 10])
def test_abandoning_parent(temp_output_dir: str, num_children: int) -> None:
duct_prefix = f"{temp_output_dir}log_"
command = f"duct --s-i 0.001 --r-i 0.01 -p {duct_prefix} {ABANDONING_PARENT} {num_children} sleep 0.35"
command = f"duct --s-i 0.001 --r-i 0.01 -p {duct_prefix} {ABANDONING_PARENT} {num_children} sleep 0.2"
subprocess.check_output(command, shell=True)

with open(f"{duct_prefix}usage.json") as usage_file:
Expand Down

0 comments on commit 9074a96

Please sign in to comment.