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 () => {
|
||||
vi.useFakeTimers();
|
||||
const nodeWrapper = { jsonData: {} };
|
||||
vi.mocked(K8s.ResourceClasses.Node.useList).mockReturnValue([
|
||||
[nodeWrapper],
|
||||
null,
|
||||
] 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')
|
||||
);
|
||||
vi.mocked(K8s.ResourceClasses.Node.useList).mockReturnValue([[nodeWrapper], null] 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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user