fix: ensure all test adjustments are committed

This commit is contained in:
courtmanr@gmail.com
2025-05-16 23:17:36 +01:00
parent 816f69dc77
commit 32aafb596a
+2 -2
View File
@@ -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);