test(server): avoid per-file Git work in the diff stream fixture (#10633)
Stage the generated additions so both diff paths can read their patches in bulk while still comparing against HEAD. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
ff27da07bf
commit
e03fe0d8e7
1 file changed
+2
@@ -314,6 +314,8 @@ test("streams whole-file batches and answers a same-socket ping before the revis
|
||||
).join("\n") + "\n";
|
||||
writeFileSync(join(cwd, `${file}.ts`), content);
|
||||
}
|
||||
// Stage the fixture so Git reads the added files in bulk. They are still new relative to HEAD.
|
||||
git(cwd, "add", ".");
|
||||
expect(ctx.client.getLastServerInfoMessage()).toMatchObject({
|
||||
features: { diffSubscription: true },
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user