11cb0ef41Sopenharmony_ciimport tmpdir from '../../../common/tmpdir.js'; 21cb0ef41Sopenharmony_ciimport { setTimeout } from 'node:timers/promises'; 31cb0ef41Sopenharmony_ciimport fs from 'node:fs/promises'; 41cb0ef41Sopenharmony_ciimport path from 'node:path'; 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciawait fs.writeFile(path.resolve(tmpdir.path, 'test-runner-concurrency'), 'a.mjs'); 71cb0ef41Sopenharmony_ciwhile (true) { 81cb0ef41Sopenharmony_ci const file = await fs.readFile(path.resolve(tmpdir.path, 'test-runner-concurrency'), 'utf8'); 91cb0ef41Sopenharmony_ci if (file === 'b.mjs') { 101cb0ef41Sopenharmony_ci break; 111cb0ef41Sopenharmony_ci } 121cb0ef41Sopenharmony_ci await setTimeout(10); 131cb0ef41Sopenharmony_ci} 14