Skip to content

Commit f8add10

Browse files
committed
test(server): use concurrent Effect traversal for rename races
1 parent d0b0e0c commit f8add10

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎apps/server/src/vcs/GitVcsDriverCore.test.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2975,10 +2975,9 @@ it.layer(layerTest)("GitVcsDriver core integration", (it) => {
29752975
yield* git(cwd, ["config", `branch.${source}.gh-merge-base`, "main"]);
29762976
}
29772977

2978-
const renamed = yield* Effect.all(
2979-
sources.map((oldBranch) =>
2980-
driver.renameBranch({ cwd, oldBranch, newBranch: "feature/shared" }),
2981-
),
2978+
const renamed = yield* Effect.forEach(
2979+
sources,
2980+
(oldBranch) => driver.renameBranch({ cwd, oldBranch, newBranch: "feature/shared" }),
29822981
{ concurrency: "unbounded" },
29832982
);
29842983

0 commit comments

Comments
 (0)