Skip to content

Commit 99756d5

Browse files
test(server): table-drive ssh refusal cases with it.effect.each
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 1a2d288 commit 99756d5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ it.layer(TestLayer)("GitVcsDriver core integration", (it) => {
10951095
}),
10961096
);
10971097

1098-
for (const { label, sshMessage, expectedReason, expectedText } of [
1098+
it.effect.each([
10991099
{
11001100
label: "a refused key",
11011101
sshMessage: "[email protected]: Permission denied (publickey).",
@@ -1126,8 +1126,9 @@ it.layer(TestLayer)("GitVcsDriver core integration", (it) => {
11261126
expectedReason: "host_key_unverified" as const,
11271127
expectedText: "(host_key_unverified)",
11281128
},
1129-
]) {
1130-
it.effect(`names ${label} rather than an unreachable remote`, () =>
1129+
])(
1130+
"names $label rather than an unreachable remote",
1131+
({ sshMessage, expectedReason, expectedText }) =>
11311132
Effect.gen(function* () {
11321133
const parent = yield* makeTmpDir();
11331134
const pathService = yield* Path.Path;
@@ -1159,8 +1160,7 @@ it.layer(TestLayer)("GitVcsDriver core integration", (it) => {
11591160
assert.deepInclude(error, { reason: expectedReason });
11601161
assert.include(error.message, expectedText);
11611162
}),
1162-
);
1163-
}
1163+
);
11641164

11651165
it.effect("does not read a filesystem permission error as an ssh refusal", () =>
11661166
Effect.gen(function* () {

0 commit comments

Comments
 (0)