Skip to content

Commit c65cdab

Browse files
committed
test(workers): follow conditional block style
1 parent d0aae46 commit c65cdab

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/gateway/worker-environments/node-launch-adapter.test.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ describe("node worker launch adapter", () => {
175175
);
176176
const sleep = vi.fn(async () => {
177177
expect(invoke).not.toHaveBeenCalled();
178-
if (outcome === "abort") controller.abort(new Error("operator cancelled capacity wait"));
179-
else available = 1;
178+
if (outcome === "abort") {
179+
controller.abort(new Error("operator cancelled capacity wait"));
180+
} else {
181+
available = 1;
182+
}
180183
});
181184
const adapter = createNodeWorkerLaunchAdapter({
182185
getTransport: () => transportWith(invoke, async () => [nodeProof("conn-1", available)]),

0 commit comments

Comments
 (0)