Skip to content

Commit

Permalink
remove bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh committed Jan 6, 2025
1 parent 9d9e7db commit 2a01a26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,8 @@ exclude = ".*site-packages.*"

[tool.uv.sources]
sematic = { workspace = true }

[tool.pytest.ini_options]
testpaths = [
"sematic",
]
25 changes: 0 additions & 25 deletions sematic/runners/tests/test_local_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,31 +941,6 @@ def fork_func(param: int) -> int: # type: ignore
assert result == 42


def test_subprocess_no_cleanup(
no_settings_file, # noqa: F811
mock_socketio, # noqa: F811
test_db, # noqa: F811
mock_requests, # noqa: F811
):
@func
def fork_func(param: int) -> int: # type: ignore
subprocess_pid = os.fork()

if subprocess_pid == 0:
return param

os.waitpid(subprocess_pid, 0)
time.sleep(1)
return param

future = fork_func(param=42)
result = LocalRunner().run(future)

# assert the subprocess did not execute worker code,
# messing up the actual worker's workflow
assert result == 42


def test_subprocess_error(
no_settings_file, # noqa: F811
mock_socketio, # noqa: F811
Expand Down

0 comments on commit 2a01a26

Please sign in to comment.