summaryrefslogtreecommitdiff
path: root/test/web/catalog_ui.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'test/web/catalog_ui.mjs')
-rw-r--r--test/web/catalog_ui.mjs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/catalog_ui.mjs b/test/web/catalog_ui.mjs
index 9f4aca5..32fb2ad 100644
--- a/test/web/catalog_ui.mjs
+++ b/test/web/catalog_ui.mjs
@@ -47,6 +47,7 @@ async function readySites() { await wait(() => evaluate(`document.querySelectorA
try {
const root = path.join(work, 'public'); await fs.mkdir(root);
await fs.writeFile(path.join(root, 'index.html'), '<h1>Fixture</h1>');
+ await fs.writeFile(path.join(root, 'large.bin'), Buffer.alloc(512000, 0xa5));
await fs.writeFile(path.join(work, 'large.txt'), 'x'.repeat(180000));
const dashboard = await port(), debugPort = await port();
const runtime = path.join(work, 'runtime');
@@ -58,6 +59,9 @@ try {
const web = startWeb();
const url = `http://127.0.0.1:${dashboard}`;
await wait(async () => (await fetch(url)).ok, 'server ready');
+ const concurrent = start(process.execPath, ['test/web/parallel_reads.mjs', url + '/sites/fixture/', root]);
+ const [parallelCode] = await once(concurrent, 'exit');
+ assert.equal(parallelCode, 0, concurrent.output);
assert.equal((await (await fetch(url + '/_cloud9/config.json')).json()).catalog, true);
assert.equal((await fetch(url + '/_cloud9/catalog.js')).status, 404, 'standalone JS removed');
start(process.env.CLOUD9_CHROME || 'google-chrome-stable', ['--headless=new', '--no-sandbox', '--disable-dev-shm-usage', '--no-first-run', '--no-default-browser-check', `--user-data-dir=${work}/chrome`, `--remote-debugging-port=${debugPort}`, 'about:blank']);