From bfbf0de151a6ee4936b206a0e45aa4323ec54984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Zugmeyer?= Date: Wed, 2 Mar 2022 10:14:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20simplify=20error=20condition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/e2e/lib/framework/httpServers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/lib/framework/httpServers.ts b/test/e2e/lib/framework/httpServers.ts index 6d511c3123..d71971c274 100644 --- a/test/e2e/lib/framework/httpServers.ts +++ b/test/e2e/lib/framework/httpServers.ts @@ -86,7 +86,7 @@ async function instantiateServer(): Promise { try { return await instantiateServerOnPort(port) } catch (error) { - if (error instanceof Error && (error as NodeJS.ErrnoException).code === 'EADDRINUSE') { + if ((error as NodeJS.ErrnoException).code === 'EADDRINUSE') { continue } throw error