From dc129c017b32bec3ebe56d374492f77d9f38e58a Mon Sep 17 00:00:00 2001 From: shreyamalviya Date: Thu, 20 May 2021 16:43:36 +0530 Subject: [PATCH] Fix unit test in test_consts.py --- monkey/tests/unit_tests/monkey_island/cc/test_consts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/test_consts.py b/monkey/tests/unit_tests/monkey_island/cc/test_consts.py index eebb7414f..993ddaa64 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/test_consts.py +++ b/monkey/tests/unit_tests/monkey_island/cc/test_consts.py @@ -5,8 +5,8 @@ import monkey_island.cc.server_utils.consts as consts def test_default_server_config_file_path(): if platform.system() == "Windows": - server_file_path = consts.MONKEY_ISLAND_ABS_PATH + r"\cc\server_config.json" + server_file_path = f"{consts.DEFAULT_DATA_DIR}\\{consts.SERVER_CONFIG_FILENAME}" else: - server_file_path = consts.MONKEY_ISLAND_ABS_PATH + "/cc/server_config.json" + server_file_path = f"{consts.DEFAULT_DATA_DIR}/{consts.SERVER_CONFIG_FILENAME}" assert consts.DEFAULT_SERVER_CONFIG_PATH == server_file_path