Skip to content

Commit

Permalink
Fix unhandled promise rejection in socket tests (#112806) (#112819)
Browse files Browse the repository at this point in the history
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
  • Loading branch information
kibanamachine and rudolf authored Sep 27, 2021
1 parent 9357d9e commit 56f338f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/http/router/socket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 56f338f

Please sign in to comment.