@@ -437,7 +437,7 @@ final class BackgroundIndexingTests: XCTestCase {
437437 )
438438
439439 project. testClient. send ( DidChangeWatchedFilesNotification ( changes: [ FileEvent ( uri: otherFileUri, type: . changed) ] ) )
440- _ = try await project. testClient. send ( PollIndexRequest ( ) )
440+ try await project. testClient. send ( PollIndexRequest ( ) )
441441
442442 let callsAfterEdit = try await project. testClient. send (
443443 CallHierarchyIncomingCallsRequest ( item: try XCTUnwrap ( prepare? . only) )
@@ -503,7 +503,7 @@ final class BackgroundIndexingTests: XCTestCase {
503503 )
504504
505505 project. testClient. send ( DidChangeWatchedFilesNotification ( changes: [ FileEvent ( uri: uri, type: . changed) ] ) )
506- _ = try await project. testClient. send ( PollIndexRequest ( ) )
506+ try await project. testClient. send ( PollIndexRequest ( ) )
507507
508508 let callsAfterEdit = try await project. testClient. send (
509509 CallHierarchyIncomingCallsRequest ( item: try XCTUnwrap ( prepare? . only) )
@@ -713,11 +713,11 @@ final class BackgroundIndexingTests: XCTestCase {
713713 // Ensure that LibC gets opened before LibD, so that LibD is the latest document. Two open requests don't have
714714 // dependencies between each other, so SourceKit-LSP is free to execute them in parallel or re-order them without
715715 // the barrier.
716- _ = try await project. testClient. send ( BarrierRequest ( ) )
716+ try await project. testClient. send ( BarrierRequest ( ) )
717717 _ = try project. openDocument ( " LibD.swift " )
718718
719719 // Send a barrier request to ensure we have finished opening LibD before allowing the preparation of LibB to finish.
720- _ = try await project. testClient. send ( BarrierRequest ( ) )
720+ try await project. testClient. send ( BarrierRequest ( ) )
721721
722722 allDocumentsOpened. signal ( )
723723 try libDPreparedForEditing. waitOrThrow ( )
@@ -847,7 +847,7 @@ final class BackgroundIndexingTests: XCTestCase {
847847 WorkspaceFolder ( uri: DocumentURI ( project. scratchDirectory) )
848848 ]
849849 )
850- _ = try await otherClient. send ( PollIndexRequest ( ) )
850+ try await otherClient. send ( PollIndexRequest ( ) )
851851 }
852852
853853 func testOpeningFileThatIsNotPartOfThePackageDoesntGenerateABuildFolderThere( ) async throws {
@@ -900,7 +900,7 @@ final class BackgroundIndexingTests: XCTestCase {
900900 return VoidResponse ( )
901901 }
902902 _ = try project. openDocument ( " Lib.swift " )
903- _ = try await project. testClient. send ( BarrierRequest ( ) )
903+ try await project. testClient. send ( BarrierRequest ( ) )
904904 }
905905
906906 func testImportPreparedModuleWithFunctionBodiesSkipped( ) async throws {
@@ -1185,7 +1185,7 @@ final class BackgroundIndexingTests: XCTestCase {
11851185 FileEvent ( uri: DocumentURI ( project. scratchDirectory. appendingPathComponent ( " Package.resolved " ) ) , type: . changed)
11861186 ] )
11871187 )
1188- _ = try await project. testClient. send ( PollIndexRequest ( ) )
1188+ try await project. testClient. send ( PollIndexRequest ( ) )
11891189 XCTAssertEqual ( try String ( contentsOf: packageResolvedURL) , originalPackageResolvedContents)
11901190
11911191 // Simulate a package update which goes as follows:
@@ -1206,7 +1206,7 @@ final class BackgroundIndexingTests: XCTestCase {
12061206 FileEvent ( uri: DocumentURI ( project. scratchDirectory. appendingPathComponent ( " Package.resolved " ) ) , type: . changed)
12071207 ] )
12081208 )
1209- _ = try await project. testClient. send ( PollIndexRequest ( ) )
1209+ try await project. testClient. send ( PollIndexRequest ( ) )
12101210 project. testClient. send (
12111211 DidChangeWatchedFilesNotification (
12121212 changes: FileManager . default. findFiles ( named: " Dependency.swift " , in: project. scratchDirectory) . map {
0 commit comments