fix: reapply formatting after rebase
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -155,17 +155,9 @@ describe('IntelGpuDataProvider', () => {
|
|||||||
it('treats a hanging CRD request as unavailable after 2s timeout', async () => {
|
it('treats a hanging CRD request as unavailable after 2s timeout', async () => {
|
||||||
vi.useFakeTimers();
|
vi.useFakeTimers();
|
||||||
const nodeWrapper = { jsonData: {} };
|
const nodeWrapper = { jsonData: {} };
|
||||||
vi.mocked(K8s.ResourceClasses.Node.useList).mockReturnValue([
|
vi.mocked(K8s.ResourceClasses.Node.useList).mockReturnValue([[nodeWrapper], null] as any);
|
||||||
[nodeWrapper],
|
vi.mocked(K8s.ResourceClasses.Pod.useList).mockReturnValue([[nodeWrapper], null] as any);
|
||||||
null,
|
vi.mocked(ApiProxy.request).mockRejectedValue(new Error('Request timed out after 2000ms'));
|
||||||
] as any);
|
|
||||||
vi.mocked(K8s.ResourceClasses.Pod.useList).mockReturnValue([
|
|
||||||
[nodeWrapper],
|
|
||||||
null,
|
|
||||||
] as any);
|
|
||||||
vi.mocked(ApiProxy.request).mockRejectedValue(
|
|
||||||
new Error('Request timed out after 2000ms')
|
|
||||||
);
|
|
||||||
|
|
||||||
const { result } = renderHook(() => useIntelGpuContext(), { wrapper: Wrapper });
|
const { result } = renderHook(() => useIntelGpuContext(), { wrapper: Wrapper });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user