@@ -438,7 +438,7 @@ final class BackgroundIndexingTests: XCTestCase {
438438 )
439439
440440 project. testClient. send ( DidChangeWatchedFilesNotification ( changes: [ FileEvent ( uri: otherFileUri, type: . changed) ] ) )
441- _ = try await project. testClient. send ( PollIndexRequest ( ) )
441+ try await project. testClient. send ( PollIndexRequest ( ) )
442442
443443 let callsAfterEdit = try await project. testClient. send (
444444 CallHierarchyIncomingCallsRequest ( item: try XCTUnwrap ( prepare? . only) )
@@ -504,7 +504,7 @@ final class BackgroundIndexingTests: XCTestCase {
504504 )
505505
506506 project. testClient. send ( DidChangeWatchedFilesNotification ( changes: [ FileEvent ( uri: uri, type: . changed) ] ) )
507- _ = try await project. testClient. send ( PollIndexRequest ( ) )
507+ try await project. testClient. send ( PollIndexRequest ( ) )
508508
509509 let callsAfterEdit = try await project. testClient. send (
510510 CallHierarchyIncomingCallsRequest ( item: try XCTUnwrap ( prepare? . only) )
@@ -714,11 +714,11 @@ final class BackgroundIndexingTests: XCTestCase {
714714 // Ensure that LibC gets opened before LibD, so that LibD is the latest document. Two open requests don't have
715715 // dependencies between each other, so SourceKit-LSP is free to execute them in parallel or re-order them without
716716 // the barrier.
717- _ = try await project. testClient. send ( BarrierRequest ( ) )
717+ try await project. testClient. send ( BarrierRequest ( ) )
718718 _ = try project. openDocument ( " LibD.swift " )
719719
720720 // Send a barrier request to ensure we have finished opening LibD before allowing the preparation of LibB to finish.
721- _ = try await project. testClient. send ( BarrierRequest ( ) )
721+ try await project. testClient. send ( BarrierRequest ( ) )
722722
723723 allDocumentsOpened. signal ( )
724724 try libDPreparedForEditing. waitOrThrow ( )
@@ -848,7 +848,7 @@ final class BackgroundIndexingTests: XCTestCase {
848848 WorkspaceFolder ( uri: DocumentURI ( project. scratchDirectory) )
849849 ]
850850 )
851- _ = try await otherClient. send ( PollIndexRequest ( ) )
851+ try await otherClient. send ( PollIndexRequest ( ) )
852852 }
853853
854854 func testOpeningFileThatIsNotPartOfThePackageDoesntGenerateABuildFolderThere( ) async throws {
@@ -901,7 +901,7 @@ final class BackgroundIndexingTests: XCTestCase {
901901 return VoidResponse ( )
902902 }
903903 _ = try project. openDocument ( " Lib.swift " )
904- _ = try await project. testClient. send ( BarrierRequest ( ) )
904+ try await project. testClient. send ( BarrierRequest ( ) )
905905 }
906906
907907 func testImportPreparedModuleWithFunctionBodiesSkipped( ) async throws {
@@ -1186,7 +1186,7 @@ final class BackgroundIndexingTests: XCTestCase {
11861186 FileEvent ( uri: DocumentURI ( project. scratchDirectory. appendingPathComponent ( " Package.resolved " ) ) , type: . changed)
11871187 ] )
11881188 )
1189- _ = try await project. testClient. send ( PollIndexRequest ( ) )
1189+ try await project. testClient. send ( PollIndexRequest ( ) )
11901190 XCTAssertEqual ( try String ( contentsOf: packageResolvedURL) , originalPackageResolvedContents)
11911191
11921192 // Simulate a package update which goes as follows:
@@ -1207,7 +1207,7 @@ final class BackgroundIndexingTests: XCTestCase {
12071207 FileEvent ( uri: DocumentURI ( project. scratchDirectory. appendingPathComponent ( " Package.resolved " ) ) , type: . changed)
12081208 ] )
12091209 )
1210- _ = try await project. testClient. send ( PollIndexRequest ( ) )
1210+ try await project. testClient. send ( PollIndexRequest ( ) )
12111211 project. testClient. send (
12121212 DidChangeWatchedFilesNotification (
12131213 changes: FileManager . default. findFiles ( named: " Dependency.swift " , in: project. scratchDirectory) . map {
0 commit comments