forked from p15670423/monkey
UT: Fix bug in test_handle_ping_scan_event test
This commit is contained in:
parent
2142dce97e
commit
61bda27d7f
|
@ -245,7 +245,7 @@ def test_handle_scan_data__node_not_upserted_if_machine_storageerror(
|
|||
target_machine = TARGET_MACHINE
|
||||
target_machine.operating_system = None
|
||||
machine_repository.get_machine_by_id = MagicMock(side_effect=machine_from_id)
|
||||
machine_repository.get_machines_by_ip = MagicMock(return_value=target_machine)
|
||||
machine_repository.get_machines_by_ip = MagicMock(side_effect=machines_from_ip)
|
||||
machine_repository.upsert_machine = MagicMock(side_effect=StorageError)
|
||||
|
||||
handler(EVENT)
|
||||
|
|
Loading…
Reference in New Issue