mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
fix: ensure all test adjustments are committed
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user