From 5bfe78b67209cf316c162bdd66f7ec2b0e0f1a24 Mon Sep 17 00:00:00 2001 From: Rudolf Meijering Date: Wed, 22 Sep 2021 13:00:10 +0200 Subject: [PATCH] Fix unhandled promise rejection in socket tests --- src/core/server/http/router/socket.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/server/http/router/socket.test.ts b/src/core/server/http/router/socket.test.ts index 60c91786767a6..389c08825d51b 100644 --- a/src/core/server/http/router/socket.test.ts +++ b/src/core/server/http/router/socket.test.ts @@ -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); });