Bump timeout for unit-tests

Bump timeout for unit-tests.
This commit is contained in:
nixocio 2021-04-27 14:15:08 -04:00
parent cca3698d19
commit f9dc5cd32b
3 changed files with 1 additions and 10 deletions

View File

@ -160,7 +160,6 @@ describe('<InstanceGroupList />', () => {
});
test('should render deletion error modal', async () => {
jest.setTimeout(5000 * 4);
InstanceGroupsAPI.destroy = jest.fn();
InstanceGroupsAPI.destroy.mockRejectedValue(
new Error({

View File

@ -82,13 +82,6 @@ describe('<JobOutput />', () => {
let wrapper;
const mockJob = mockJobData;
const mockJobEvents = mockJobEventsData;
beforeAll(() => {
jest.setTimeout(5000 * 4);
});
afterAll(() => {
jest.setTimeout(5000);
});
beforeEach(() => {
JobsAPI.readEvents.mockResolvedValue({
data: {
@ -265,7 +258,6 @@ describe('<JobOutput />', () => {
});
test('filter should trigger api call and display correct rows', async () => {
jest.setTimeout(5000 * 4);
const searchBtn = 'button[aria-label="Search submit button"]';
const searchTextInput = 'input[aria-label="Search text input"]';
await act(async () => {

View File

@ -6,7 +6,7 @@ require('@babel/polyfill');
configure({ adapter: new Adapter() });
jest.setTimeout(5000 * 4);
jest.setTimeout(120000);
// apply polyfills for jsdom
require('@nteract/mockument');