mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix batch test
This commit is contained in:
parent
f556db26a9
commit
0ede71eda5
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ class MockSubscriber:
|
|||
def __init__(self, *args, **kwargs):
|
||||
return
|
||||
|
||||
def read(self, timeout=None):
|
||||
def recv(self, timeout=None):
|
||||
"""
|
||||
Mock IPCMessageSubcriber read method.
|
||||
|
||||
|
@ -170,7 +170,7 @@ def test_batch_issue_56273():
|
|||
"extension_modules": "",
|
||||
"failhard": True,
|
||||
}
|
||||
with patch("salt.transport.ipc.IPCMessageSubscriber", MockSubscriber):
|
||||
with patch("salt.transport.tcp.TCPPubClient", MockSubscriber):
|
||||
batch = salt.cli.batch.Batch(opts, quiet=True)
|
||||
with patch.object(batch.local, "pub", Mock(side_effect=mock_pub)):
|
||||
with patch.object(
|
||||
|
|
Loading…
Add table
Reference in a new issue