File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -604,13 +604,14 @@ final class BackgroundIndexingTests: XCTestCase {
604
604
)
605
605
606
606
let receivedEmptyDiagnostics = self . expectation ( description: " Received diagnostic refresh request " )
607
+ receivedEmptyDiagnostics. assertForOverFulfill = false
607
608
project. testClient. handleMultipleRequests { ( _: CreateWorkDoneProgressRequest ) in
608
609
return VoidResponse ( )
609
610
}
610
611
611
- project. testClient. handleMultipleRequests { ( _: DiagnosticsRefreshRequest ) in
612
- Task {
613
- let updatedDiagnostics = try await project. testClient. send (
612
+ project. testClient. handleMultipleRequests { [ weak project ] ( _: DiagnosticsRefreshRequest ) in
613
+ Task { [ weak project ] in
614
+ let updatedDiagnostics = try await project? . testClient. send (
614
615
DocumentDiagnosticsRequest ( textDocument: TextDocumentIdentifier ( uri) )
615
616
)
616
617
guard case . full( let updatedDiagnostics) = updatedDiagnostics else {
You can’t perform that action at this time.
0 commit comments