jasonosullivan34 commented on code in PR #10577:
URL: https://github.com/apache/ozone/pull/10577#discussion_r3452576168
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/__tests__/datanodes/Datanodes.test.tsx:
##########
@@ -42,6 +42,19 @@ vi.mock('@/v2/components/select/multiSelect.tsx', () => ({
),
}));
+vi.mock('@/v2/hooks/useAPIData.hook', async (importOriginal) => {
+ const actual = await importOriginal<typeof
import('@/v2/hooks/useAPIData.hook')>();
+ return {
+ ...actual,
+ useApiData: <T,>(url: string, defaultValue: T, options = {}) =>
+ actual.useApiData(url, defaultValue, {
+ ...options,
+ retryAttempts: 0,
+ retryDelay: 0,
+ }),
+ };
+});
Review Comment:
Chose to partially mock the useApiData hook to speed up the relevant error
tests
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]