Merge pull request #5250 from jakemcdermott/fix-5234

fix flakey test

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-11-06 14:29:33 +00:00 committed by GitHub
commit a353f2a807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,14 @@ describe('<JobTemplateForm />', () => {
{ id: 5, kind: 'Machine', name: 'Cred 5', url: 'www.google.com' },
];
beforeAll(() => {
jest.setTimeout(5000 * 4);
});
afterAll(() => {
jest.setTimeout(5000);
});
beforeEach(() => {
LabelsAPI.read.mockReturnValue({
data: mockData.summary_fields.labels,