From 72984bb3e37ed35d64182e621d5b4948c50b56e9 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Wed, 30 Mar 2022 16:53:16 +0300 Subject: [PATCH] UT: Fix windows bug in test_t1107_telem.py --- .../infection_monkey/telemetry/attack/test_t1107_telem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/infection_monkey/telemetry/attack/test_t1107_telem.py b/monkey/tests/unit_tests/infection_monkey/telemetry/attack/test_t1107_telem.py index 7680191a5..b59471470 100644 --- a/monkey/tests/unit_tests/infection_monkey/telemetry/attack/test_t1107_telem.py +++ b/monkey/tests/unit_tests/infection_monkey/telemetry/attack/test_t1107_telem.py @@ -6,7 +6,8 @@ import pytest from common.utils.attack_utils import ScanStatus from infection_monkey.telemetry.attack.t1107_telem import T1107Telem -PATH = "path/to/file.txt" +# Convert to path to fix path separators for current os +PATH = str(Path("path/to/file.txt")) STATUS = ScanStatus.USED