Skip to content

Commit 0fdbbb3

Browse files
committed
Remove trivial test.
1 parent 7299364 commit 0fdbbb3

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

sdks/python/apache_beam/utils/subprocess_server_test.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -551,31 +551,6 @@ def __init__(self):
551551
# Clean up the other owner
552552
cache.purge(other_owner)
553553

554-
def test_subprocess_server_logging(self):
555-
from unittest.mock import MagicMock
556-
557-
mock_process = MagicMock()
558-
mock_process.poll.return_value = 0
559-
mock_process.stdout.readline.return_value = b""
560-
561-
with patch('subprocess.Popen', return_value=mock_process) as mock_popen:
562-
with self.assertLogs('apache_beam.utils.subprocess_server',
563-
level='ERROR') as log_ctx:
564-
565-
class DummyServer(subprocess_server.SubprocessServer):
566-
pass
567-
568-
server = DummyServer(
569-
lambda channel: None, ["dummy_cmd_logging"], port=12345)
570-
server.start_process()
571-
server.stop_process()
572-
573-
# Assert the error logs were recorded
574-
self.assertTrue(
575-
any("Really starting service at" in log for log in log_ctx.output))
576-
self.assertTrue(
577-
any("Really destroying service at" in log for log in log_ctx.output))
578-
579554
def test_non_context_owners_do_not_share_keys(self):
580555
cache = subprocess_server._SharedCache(self.with_prefix, lambda x: None)
581556
# owner1 is a non-context owner (e.g., prism)

0 commit comments

Comments
 (0)