agent: Fix failing ransomware test on Windows
This commit is contained in:
parent
df1f3cda78
commit
c1af3f8165
|
@ -1,5 +1,5 @@
|
||||||
import os
|
import os
|
||||||
from pathlib import PurePath
|
from pathlib import PurePosixPath
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from tests.unit_tests.infection_monkey.ransomware.ransomware_target_files import (
|
from tests.unit_tests.infection_monkey.ransomware.ransomware_target_files import (
|
||||||
|
@ -143,7 +143,7 @@ def test_telemetry_failure(monkeypatch, ransomware_payload, telemetry_messenger_
|
||||||
monkeypatch.setattr(
|
monkeypatch.setattr(
|
||||||
ransomware_payload_module,
|
ransomware_payload_module,
|
||||||
"select_production_safe_target_files",
|
"select_production_safe_target_files",
|
||||||
lambda a, b: [PurePath("/file/not/exist")],
|
lambda a, b: [PurePosixPath("/file/not/exist")],
|
||||||
),
|
),
|
||||||
|
|
||||||
ransomware_payload.run_payload()
|
ransomware_payload.run_payload()
|
||||||
|
|
Loading…
Reference in New Issue