Skip to content

Commit 492dcce

Browse files
author
adil.rakhaliyev
committed
fix: edge test concurrency failing
1 parent d4460db commit 492dcce

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • test/functional/fixtures/concurrency

test/functional/fixtures/concurrency/test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-only-tests/no-only-tests */
12
const path = require('path');
23
const { expect } = require('chai');
34
const isCI = require('is-ci');
@@ -8,7 +9,7 @@ const { skipInNativeAutomation } = require('../../utils/skip-in');
89

910

1011
if (config.useLocalBrowsers) {
11-
describe('Concurrency', function () {
12+
describe.only('Concurrency', function () {
1213
let data = '';
1314

1415
function resolvePath (file) {
@@ -101,14 +102,14 @@ if (config.useLocalBrowsers) {
101102
});
102103

103104
it('Should run tests sequentially if concurrency = 1', function () {
104-
return run('chrome:headless --no-sandbox', 1, './testcafe-fixtures/sequential-test.js')
105+
return run('edge:headless --no-sandbox', 1, './testcafe-fixtures/sequential-test.js')
105106
.then(() => {
106107
expect(testInfo.getData()).eql(['long started', 'long finished', 'short started', 'short finished']);
107108
});
108109
});
109110

110111
it('Should run tests concurrently if concurrency > 1', function () {
111-
return run('chrome:headless --no-sandbox --disable-gpu --disable-dev-shm-usage', 2, './testcafe-fixtures/concurrent-test.js')
112+
return run('edge:headless --no-sandbox --disable-gpu --disable-dev-shm-usage', 2, './testcafe-fixtures/concurrent-test.js')
112113
.then(() => {
113114
expect(testInfo.getData()).eql(['test started', 'test started', 'short finished', 'long finished']);
114115
});

0 commit comments

Comments
 (0)