Merge pull request #10032 from nixocio/ui_update_timeout

Bump timeout for unit-tests

Bump timeout for unit-tests.

Reviewed-by: Michael Abashian <None>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-04-27 20:17:42 +00:00 committed by GitHub
commit acb6e3e6e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');