mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix unhandled promise rejection in socket tests (#112806)
This commit is contained in:
parent
7aefe24387
commit
e39a9d495b
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ describe('KibanaSocket', () => {
|
|||
});
|
||||
const socket = new KibanaSocket(tlsSocket);
|
||||
|
||||
expect(socket.renegotiate({})).resolves.toBe(result);
|
||||
await expect(socket.renegotiate({})).rejects.toBe(result);
|
||||
expect(spy).toBeCalledTimes(1);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue