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