@@ -961,7 +961,7 @@ final class BackgroundIndexingTests: XCTestCase {
961
961
}
962
962
963
963
func testUseBuildFlagsDuringPreparation( ) async throws {
964
- var options = SourceKitLSPOptions . testDefault ( )
964
+ var options = try await SourceKitLSPOptions . testDefault ( )
965
965
options. swiftPMOrDefault. swiftCompilerFlags = [ " -D " , " MY_FLAG " ]
966
966
let project = try await SwiftPMTestProject (
967
967
files: [
@@ -1008,7 +1008,7 @@ final class BackgroundIndexingTests: XCTestCase {
1008
1008
func testUseSwiftSDKFlagsDuringPreparation( ) async throws {
1009
1009
try await SkipUnless . canSwiftPMCompileForIOS ( )
1010
1010
1011
- var options = SourceKitLSPOptions . testDefault ( )
1011
+ var options = try await SourceKitLSPOptions . testDefault ( )
1012
1012
options. swiftPMOrDefault. swiftSDK = " arm64-apple-ios "
1013
1013
let project = try await SwiftPMTestProject (
1014
1014
files: [
@@ -1100,7 +1100,7 @@ final class BackgroundIndexingTests: XCTestCase {
1100
1100
}
1101
1101
1102
1102
func testCrossModuleFunctionalityEvenIfLowLevelModuleHasErrors( ) async throws {
1103
- var options = SourceKitLSPOptions . testDefault ( )
1103
+ var options = try await SourceKitLSPOptions . testDefault ( )
1104
1104
options. backgroundPreparationMode = . enabled
1105
1105
let project = try await SwiftPMTestProject (
1106
1106
files: [
@@ -1146,7 +1146,7 @@ final class BackgroundIndexingTests: XCTestCase {
1146
1146
}
1147
1147
1148
1148
func testCrossModuleFunctionalityWithPreparationNoSkipping( ) async throws {
1149
- var options = SourceKitLSPOptions . testDefault ( )
1149
+ var options = try await SourceKitLSPOptions . testDefault ( )
1150
1150
options. backgroundPreparationMode = . noLazy
1151
1151
let project = try await SwiftPMTestProject (
1152
1152
files: [
@@ -1430,7 +1430,7 @@ final class BackgroundIndexingTests: XCTestCase {
1430
1430
func testCancelIndexing( ) async throws {
1431
1431
try SkipUnless . longTestsEnabled ( )
1432
1432
1433
- var options = SourceKitLSPOptions . testDefault ( )
1433
+ var options = try await SourceKitLSPOptions . testDefault ( )
1434
1434
options. backgroundPreparationMode = . enabled
1435
1435
options. indexOrDefault. updateIndexStoreTimeout = 1 /* second */
1436
1436
0 commit comments