From b1db4a81917f2c6431c951d61435ef4adeeb8161 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Tue, 23 May 2023 12:16:22 -0700 Subject: [PATCH] test: skip connecting 20 times on non-linux (#23239) --- tests/library/browsertype-connect.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/library/browsertype-connect.spec.ts b/tests/library/browsertype-connect.spec.ts index e9577cde29..40a1dc8805 100644 --- a/tests/library/browsertype-connect.spec.ts +++ b/tests/library/browsertype-connect.spec.ts @@ -457,7 +457,9 @@ for (const kind of ['launchServer', 'run-server'] as const) { expect(error.message).toContain('Path is not available when connecting remotely. Use saveAs() to save a local copy.'); }); - test('should be able to connect 20 times to a single server without warnings', async ({ connect, startRemoteServer }) => { + test('should be able to connect 20 times to a single server without warnings', async ({ connect, startRemoteServer, platform }) => { + test.skip(platform !== 'linux', 'Testing non-platform specific code'); + const remoteServer = await startRemoteServer(kind); let warning = null;