Skip to content

Commit 7e6f6b5

Browse files
test: remove fnctl test
1 parent 5c4e6ce commit 7e6f6b5

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/test_share.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from src.mcpm.commands.share import (
1111
find_mcp_proxy,
12-
make_non_blocking,
1312
monitor_for_errors,
1413
share,
1514
terminate_process,
@@ -33,23 +32,6 @@ def test_find_mcp_proxy_not_found(self, monkeypatch):
3332

3433
assert find_mcp_proxy() is None
3534

36-
@patch("fcntl.fcntl")
37-
def test_make_non_blocking(self, mock_fcntl):
38-
"""Test making a file object non-blocking"""
39-
# Create a mock file object
40-
mock_file = Mock()
41-
mock_file.fileno.return_value = 42
42-
43-
# Set up mock fcntl return values
44-
mock_fcntl.return_value = 0
45-
46-
# Call the function
47-
make_non_blocking(mock_file)
48-
49-
# Verify that functions were called correctly
50-
mock_file.fileno.assert_called_once()
51-
assert mock_fcntl.call_count == 2
52-
5335
def test_monitor_for_errors_with_known_error(self):
5436
"""Test error detection with a known error pattern"""
5537
error_line = "Error: RuntimeError: Received request before initialization was complete"

0 commit comments

Comments
 (0)