Skip to content

Commit 03cf47b

Browse files
committed
fixing lint errors
1 parent b50ceeb commit 03cf47b

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

packages/b2c-cli/test/functional/e2e/sites-operations.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,15 @@ describe('Sites Operations E2E Tests', function () {
125125
});
126126
});
127127

128-
129128
describe('Sequential Multiple Site Imports', function () {
130129
it('should import multiple archives without conflict', async function () {
131-
for (let i = 1; i <= 2; i++) {
132-
const result = await runCLI(['job', 'import', SITE_ARCHIVE_PATH, '--server', serverHostname]);
133-
expect(result.exitCode).to.equal(0, `Import ${i} failed: ${result.stderr}`);
130+
const results = await Promise.all([
131+
runCLI(['job', 'import', SITE_ARCHIVE_PATH, '--server', serverHostname]),
132+
runCLI(['job', 'import', SITE_ARCHIVE_PATH, '--server', serverHostname]),
133+
]);
134+
135+
for (const [index, result] of results.entries()) {
136+
expect(result.exitCode).to.equal(0, `Import ${index + 1} failed: ${result.stderr}`);
134137
}
135138
});
136139
});

0 commit comments

Comments
 (0)