From 7ddb986f159225a87322da294622d1493c800ddb Mon Sep 17 00:00:00 2001
From: shreyamalviya <shreya.malviya@gmail.com>
Date: Mon, 14 Jun 2021 23:24:52 +0530
Subject: [PATCH] tests: Fix file creation unit tests in test_utils.py

---
 .../unit_tests/monkey_island/cc/environment/test_utils.py   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py b/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py
index 248d5f850..90b65c4ec 100644
--- a/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py
+++ b/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py
@@ -36,7 +36,7 @@ def _get_acl_and_sid_from_path(path: str):
 
     sid, _, _ = win32security.LookupAccountName("", win32api.GetUserName())
     security_descriptor = win32security.GetNamedSecurityInfo(
-        test_path, win32security.SE_FILE_OBJECT, win32security.DACL_SECURITY_INFORMATION
+        path, win32security.SE_FILE_OBJECT, win32security.DACL_SECURITY_INFORMATION
     )
     acl = security_descriptor.GetSecurityDescriptorDacl()
     return acl, sid
@@ -64,7 +64,7 @@ def test_create_secure_directory__perm_linux(test_path):
 def test_create_secure_directory__perm_windows(test_path):
     create_secure_directory(test_path)
 
-    acl, user_sid = _get_acl_and_sid_from_path()
+    acl, user_sid = _get_acl_and_sid_from_path(test_path)
 
     assert acl.GetAceCount() == 1
 
@@ -99,7 +99,7 @@ def test_create_secure_file__perm_linux(test_path):
 def test_create_secure_file__perm_windows(test_path):
     create_secure_file(test_path)
 
-    acl, user_sid = _get_acl_and_sid_from_path()
+    acl, user_sid = _get_acl_and_sid_from_path(test_path)
 
     assert acl.GetAceCount() == 1