Skip to content

Commit c028ccd

Browse files
test(vscode-lm): yield-empty generators in the signal-only abort test
Lint follow-up: the quiet stream stubs must be generators, so they yield an empty iterable instead of only awaiting the gate. vscode-lm.spec 387 passed; eslint 0.
1 parent 267eed3 commit c028ccd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/api/providers/__tests__/vscode-lm.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,11 +2924,11 @@ describe("VsCodeLmHandler", () => {
29242924
mockLanguageModelChat.sendRequest.mockResolvedValueOnce({
29252925
stream: (async function* () {
29262926
await streamGate
2927-
return
2927+
yield* [] as vscode.LanguageModelTextPart[]
29282928
})(),
29292929
text: (async function* () {
29302930
await streamGate
2931-
return
2931+
yield* [] as string[]
29322932
})(),
29332933
})
29342934

0 commit comments

Comments
 (0)