mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 01:46:55 +02:00
test(ship-docsync): shard the doc-sync lifecycle by case and drop the duplicate dispatch-only case
ship-docsync ran the same fixture and prompt as ship-docsync-completion and asserted a subset of it. The file now runs one case per process, so its lane wall is its longest case instead of half the sum of thirteen.
This commit is contained in:
1 parent
bfd1783fbf
commit
45cdfab2a0
10 files changed
+75
-71
No files matched your search
@@ -84,8 +84,8 @@ mock.module(path.join(root, 'test/helpers/session-runner.ts'), () => ({
|
||||
},
|
||||
}));
|
||||
await import(path.join(root, 'test/skill-e2e-ship-docsync.test.ts'));
|
||||
expect(callbacks.size).toBe(13);
|
||||
for (const name of ['ship-docsync', 'ship-docsync-completion', 'ship-docsync-current', 'ship-docsync-failure', 'ship-docsync-store']) {
|
||||
expect(callbacks.size).toBe(12);
|
||||
for (const name of ['ship-docsync-completion', 'ship-docsync-current', 'ship-docsync-failure', 'ship-docsync-store']) {
|
||||
test(name + ' constructs its real native request without launching it', async () => {
|
||||
const before = launched;
|
||||
await expect(callbacks.get(name)()).rejects.toBe(stopped);
|
||||
@@ -101,7 +101,7 @@ for (const name of ['ship-docsync', 'ship-docsync-completion', 'ship-docsync-cur
|
||||
});
|
||||
const output = result.stdout.toString() + result.stderr.toString();
|
||||
expect(result.exitCode, output).toBe(0);
|
||||
expect(output).toContain('5 pass');
|
||||
expect(output).toContain('4 pass');
|
||||
expect(output).toContain('0 fail');
|
||||
} finally {
|
||||
fs.rmSync(dir, { recursive: true, force: true });
|
||||
|
||||
Reference in new issue
Block a user