@@ -437,7 +437,7 @@ final class BackgroundIndexingTests: XCTestCase {
437
437
)
438
438
439
439
project. testClient. send ( DidChangeWatchedFilesNotification ( changes: [ FileEvent ( uri: otherFileUri, type: . changed) ] ) )
440
- _ = try await project. testClient. send ( PollIndexRequest ( ) )
440
+ try await project. testClient. send ( PollIndexRequest ( ) )
441
441
442
442
let callsAfterEdit = try await project. testClient. send (
443
443
CallHierarchyIncomingCallsRequest ( item: try XCTUnwrap ( prepare? . only) )
@@ -503,7 +503,7 @@ final class BackgroundIndexingTests: XCTestCase {
503
503
)
504
504
505
505
project. testClient. send ( DidChangeWatchedFilesNotification ( changes: [ FileEvent ( uri: uri, type: . changed) ] ) )
506
- _ = try await project. testClient. send ( PollIndexRequest ( ) )
506
+ try await project. testClient. send ( PollIndexRequest ( ) )
507
507
508
508
let callsAfterEdit = try await project. testClient. send (
509
509
CallHierarchyIncomingCallsRequest ( item: try XCTUnwrap ( prepare? . only) )
@@ -713,11 +713,11 @@ final class BackgroundIndexingTests: XCTestCase {
713
713
// Ensure that LibC gets opened before LibD, so that LibD is the latest document. Two open requests don't have
714
714
// dependencies between each other, so SourceKit-LSP is free to execute them in parallel or re-order them without
715
715
// the barrier.
716
- _ = try await project. testClient. send ( BarrierRequest ( ) )
716
+ try await project. testClient. send ( BarrierRequest ( ) )
717
717
_ = try project. openDocument ( " LibD.swift " )
718
718
719
719
// 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 ( ) )
721
721
722
722
allDocumentsOpened. signal ( )
723
723
try libDPreparedForEditing. waitOrThrow ( )
@@ -847,7 +847,7 @@ final class BackgroundIndexingTests: XCTestCase {
847
847
WorkspaceFolder ( uri: DocumentURI ( project. scratchDirectory) )
848
848
]
849
849
)
850
- _ = try await otherClient. send ( PollIndexRequest ( ) )
850
+ try await otherClient. send ( PollIndexRequest ( ) )
851
851
}
852
852
853
853
func testOpeningFileThatIsNotPartOfThePackageDoesntGenerateABuildFolderThere( ) async throws {
@@ -900,7 +900,7 @@ final class BackgroundIndexingTests: XCTestCase {
900
900
return VoidResponse ( )
901
901
}
902
902
_ = try project. openDocument ( " Lib.swift " )
903
- _ = try await project. testClient. send ( BarrierRequest ( ) )
903
+ try await project. testClient. send ( BarrierRequest ( ) )
904
904
}
905
905
906
906
func testImportPreparedModuleWithFunctionBodiesSkipped( ) async throws {
@@ -1185,7 +1185,7 @@ final class BackgroundIndexingTests: XCTestCase {
1185
1185
FileEvent ( uri: DocumentURI ( project. scratchDirectory. appendingPathComponent ( " Package.resolved " ) ) , type: . changed)
1186
1186
] )
1187
1187
)
1188
- _ = try await project. testClient. send ( PollIndexRequest ( ) )
1188
+ try await project. testClient. send ( PollIndexRequest ( ) )
1189
1189
XCTAssertEqual ( try String ( contentsOf: packageResolvedURL) , originalPackageResolvedContents)
1190
1190
1191
1191
// Simulate a package update which goes as follows:
@@ -1206,7 +1206,7 @@ final class BackgroundIndexingTests: XCTestCase {
1206
1206
FileEvent ( uri: DocumentURI ( project. scratchDirectory. appendingPathComponent ( " Package.resolved " ) ) , type: . changed)
1207
1207
] )
1208
1208
)
1209
- _ = try await project. testClient. send ( PollIndexRequest ( ) )
1209
+ try await project. testClient. send ( PollIndexRequest ( ) )
1210
1210
project. testClient. send (
1211
1211
DidChangeWatchedFilesNotification (
1212
1212
changes: FileManager . default. findFiles ( named: " Dependency.swift " , in: project. scratchDirectory) . map {
0 commit comments