mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
(cherry picked from commit ab937a3716
)
This commit is contained in:
parent
716d0f3c9f
commit
7eb3e9e0ea
1 changed files with 6 additions and 10 deletions
|
@ -217,21 +217,17 @@ describe('getServiceAnnotations', () => {
|
|||
.mockImplementation(
|
||||
() =>
|
||||
new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
reject(
|
||||
new WrappedElasticsearchClientError(
|
||||
new errors.RequestAbortedError('foo')
|
||||
)
|
||||
);
|
||||
}, 20);
|
||||
reject(
|
||||
new WrappedElasticsearchClientError(
|
||||
new errors.RequestAbortedError('foo')
|
||||
)
|
||||
);
|
||||
})
|
||||
);
|
||||
jest.spyOn(GetStoredAnnotations, 'getStoredAnnotations').mockImplementation(
|
||||
async () =>
|
||||
new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve(storedAnnotations);
|
||||
}, 10);
|
||||
resolve(storedAnnotations);
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue