From 0a612f6a5b5cc028e2ffa04adcc3e097332716af Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Tue, 10 Jun 2025 13:06:13 -0300 Subject: [PATCH] fix: update server_name to server_id in predictions batch test --- tests/orchestrator/activities/test_slot_manager.py | 2 +- tests/orchestrator/utils/test_orchestrator_functions.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/orchestrator/activities/test_slot_manager.py b/tests/orchestrator/activities/test_slot_manager.py index ca2adfa..39d65aa 100644 --- a/tests/orchestrator/activities/test_slot_manager.py +++ b/tests/orchestrator/activities/test_slot_manager.py @@ -76,7 +76,7 @@ async def test_load_opc_slots_no_decode(slot_manager): @mark.asyncio async def test_load_active_ingestors(slot_manager): slot_manager.redis_client.keys.return_value = [ - b"heartbeat:ingestor:1", b"heartbeat:ingestor:2", b"heartbeat:ingestor:3"] + b"heartbeat:ingestor:1", b"heartbeat:ingestor:2", "heartbeat:ingestor:3"] response = await slot_manager.load_active_ingestors() diff --git a/tests/orchestrator/utils/test_orchestrator_functions.py b/tests/orchestrator/utils/test_orchestrator_functions.py index 789c374..67a05d5 100644 --- a/tests/orchestrator/utils/test_orchestrator_functions.py +++ b/tests/orchestrator/utils/test_orchestrator_functions.py @@ -139,12 +139,12 @@ def test_predictions_batch(mock_process_path_priority, "query": "test_query", "write_tags": [ { - "server_name": "test_server_name", + "server_id": "test_server_id", "type": "prediction", "addr": "test_addr" }, { - "server_name": "test_server_name", + "server_id": "test_server_id", "type": "confidence", "addr": "test_addr" } @@ -210,7 +210,7 @@ def test_predictions_batch(mock_process_path_priority, "table_name": "predictions", "retention_time": 60 * 60, "opc_output_config": { - "test_server_name": { + "test_server_id": { "prediction_tags": { "test_addr": { "data_type": "float"