Increase timeout for long-running unit test assertions. (#113122) (#113793)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
This commit is contained in:
Kibana Machine 2021-10-04 14:21:59 -04:00 committed by GitHub
parent 4913677f5f
commit 64cedf1eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,10 +191,13 @@ describe('use composite image', () => {
expect(composeSpy.mock.calls[0][1]).toBe(canvasMock);
expect(composeSpy.mock.calls[0][2]).toBe(blocks);
await waitFor(() => {
expect(onComposeImageSuccess).toHaveBeenCalledTimes(1);
expect(onComposeImageSuccess).toHaveBeenCalledWith('compose success');
});
await waitFor(
() => {
expect(onComposeImageSuccess).toHaveBeenCalledTimes(1);
expect(onComposeImageSuccess).toHaveBeenCalledWith('compose success');
},
{ timeout: 10000 }
);
});
});
});