Skip to content

Commit 035b742

Browse files
committed
Fix tests
1 parent 83289ba commit 035b742

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Core/Tests/OpenAIServiceTests/ChatGPTServiceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class ChatGPTServiceTests: XCTestCase {
4141
return "\(idCounter)"
4242
}
4343
var requestBody: CompletionRequestBody?
44-
await service.changeBuildCompletionStreamAPI { _apiKey, _, _requestBody in
44+
await service.changeBuildCompletionStreamAPI { _apiKey, _, _, _requestBody in
4545
requestBody = _requestBody
4646
return MockCompletionStreamAPI_Success()
4747
}

Core/Tests/ServiceTests/Environment.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ func completion(text: String, range: CursorRange, uuid: String = "") -> CodeSugg
3434
}
3535

3636
class MockSuggestionService: GitHubCopilotSuggestionServiceType {
37+
func terminate() async {
38+
fatalError()
39+
}
40+
3741
func cancelRequest() async {
3842
fatalError()
3943
}

0 commit comments

Comments
 (0)