agent: Fix failing ransomware test on Windows

This commit is contained in:
Mike Salvatore 2021-06-28 13:31:28 -04:00
parent df1f3cda78
commit c1af3f8165
1 changed files with 2 additions and 2 deletions

View File

@ -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()