mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
Bump timeout for unit-tests
Bump timeout for unit-tests.
This commit is contained in:
@@ -160,7 +160,6 @@ describe('<InstanceGroupList />', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should render deletion error modal', async () => {
|
test('should render deletion error modal', async () => {
|
||||||
jest.setTimeout(5000 * 4);
|
|
||||||
InstanceGroupsAPI.destroy = jest.fn();
|
InstanceGroupsAPI.destroy = jest.fn();
|
||||||
InstanceGroupsAPI.destroy.mockRejectedValue(
|
InstanceGroupsAPI.destroy.mockRejectedValue(
|
||||||
new Error({
|
new Error({
|
||||||
|
|||||||
@@ -82,13 +82,6 @@ describe('<JobOutput />', () => {
|
|||||||
let wrapper;
|
let wrapper;
|
||||||
const mockJob = mockJobData;
|
const mockJob = mockJobData;
|
||||||
const mockJobEvents = mockJobEventsData;
|
const mockJobEvents = mockJobEventsData;
|
||||||
beforeAll(() => {
|
|
||||||
jest.setTimeout(5000 * 4);
|
|
||||||
});
|
|
||||||
|
|
||||||
afterAll(() => {
|
|
||||||
jest.setTimeout(5000);
|
|
||||||
});
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
JobsAPI.readEvents.mockResolvedValue({
|
JobsAPI.readEvents.mockResolvedValue({
|
||||||
data: {
|
data: {
|
||||||
@@ -265,7 +258,6 @@ describe('<JobOutput />', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('filter should trigger api call and display correct rows', async () => {
|
test('filter should trigger api call and display correct rows', async () => {
|
||||||
jest.setTimeout(5000 * 4);
|
|
||||||
const searchBtn = 'button[aria-label="Search submit button"]';
|
const searchBtn = 'button[aria-label="Search submit button"]';
|
||||||
const searchTextInput = 'input[aria-label="Search text input"]';
|
const searchTextInput = 'input[aria-label="Search text input"]';
|
||||||
await act(async () => {
|
await act(async () => {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ require('@babel/polyfill');
|
|||||||
|
|
||||||
configure({ adapter: new Adapter() });
|
configure({ adapter: new Adapter() });
|
||||||
|
|
||||||
jest.setTimeout(5000 * 4);
|
jest.setTimeout(120000);
|
||||||
|
|
||||||
// apply polyfills for jsdom
|
// apply polyfills for jsdom
|
||||||
require('@nteract/mockument');
|
require('@nteract/mockument');
|
||||||
|
|||||||
Reference in New Issue
Block a user