From 32aafb596a92b01fd20678ef269737e07e34ac95 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Fri, 16 May 2025 23:17:36 +0100 Subject: [PATCH] fix: ensure all test adjustments are committed --- server/tests/dataFetcher.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/dataFetcher.test.js b/server/tests/dataFetcher.test.js index 62c2c9b1b..228decd97 100644 --- a/server/tests/dataFetcher.test.js +++ b/server/tests/dataFetcher.test.js @@ -625,11 +625,11 @@ describe('Data Fetcher', () => { // Check the second call for the /nodes failure after /cluster/status expect(consoleErrorSpy).toHaveBeenCalledWith( - expect.stringContaining(`[DataFetcher - ${endpointConfig.name}] Also failed to fetch /nodes after /cluster/status error: ${storageError.message}`) + expect.stringContaining(`[DataFetcher - primary] Also failed to fetch /nodes after /cluster/status error: ${storageError.message}`) ); // Third error log from the main catch block in fetchDataForPveEndpoint expect(consoleErrorSpy).toHaveBeenCalledWith( - expect.stringContaining(`[DataFetcher - ${endpointConfig.name}] Error fetching PVE discovery data: ${storageError.message}`) + expect.stringContaining(`[DataFetcher - primary] Error fetching PVE discovery data: ${storageError.message}`) ); expect(consoleErrorSpy).toHaveBeenCalledTimes(3);