mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Give the web console's state lock and page tests room under load
AI Assisted
This commit is contained in:
1 parent
0de630603b
commit
cb6468577d
8 files changed
+48
-9
No files matched your search
@@ -52,9 +52,14 @@ test("stress: 200 posts interleaved with 200 chat messages lose no message from
|
||||
const c = spawn(process.execPath, [CONSOLE_CLI, "post", "--session", s.sid, "--file", patchFile], {
|
||||
env: ENV,
|
||||
cwd: ROOT,
|
||||
stdio: "ignore",
|
||||
stdio: ["ignore", "ignore", "pipe"],
|
||||
});
|
||||
let err = "";
|
||||
c.stderr.on("data", (d) => (err += d));
|
||||
c.on("exit", (code) => {
|
||||
if (code !== 0) process.stderr.write(`[repro] exit ${code}: ${err}\n`);
|
||||
resolve(code);
|
||||
});
|
||||
c.on("exit", (code) => resolve(code));
|
||||
});
|
||||
try {
|
||||
for (let block = 0; block < 20; block++) {
|
||||
|
||||
Reference in new issue
Block a user