@@ -961,7 +961,7 @@ final class BackgroundIndexingTests: XCTestCase {
961961 }
962962
963963 func testUseBuildFlagsDuringPreparation( ) async throws {
964- var options = SourceKitLSPOptions . testDefault ( )
964+ var options = try await SourceKitLSPOptions . testDefault ( )
965965 options. swiftPMOrDefault. swiftCompilerFlags = [ " -D " , " MY_FLAG " ]
966966 let project = try await SwiftPMTestProject (
967967 files: [
@@ -1008,7 +1008,7 @@ final class BackgroundIndexingTests: XCTestCase {
10081008 func testUseSwiftSDKFlagsDuringPreparation( ) async throws {
10091009 try await SkipUnless . canSwiftPMCompileForIOS ( )
10101010
1011- var options = SourceKitLSPOptions . testDefault ( )
1011+ var options = try await SourceKitLSPOptions . testDefault ( )
10121012 options. swiftPMOrDefault. swiftSDK = " arm64-apple-ios "
10131013 let project = try await SwiftPMTestProject (
10141014 files: [
@@ -1100,7 +1100,7 @@ final class BackgroundIndexingTests: XCTestCase {
11001100 }
11011101
11021102 func testCrossModuleFunctionalityEvenIfLowLevelModuleHasErrors( ) async throws {
1103- var options = SourceKitLSPOptions . testDefault ( )
1103+ var options = try await SourceKitLSPOptions . testDefault ( )
11041104 options. backgroundPreparationMode = . enabled
11051105 let project = try await SwiftPMTestProject (
11061106 files: [
@@ -1146,7 +1146,7 @@ final class BackgroundIndexingTests: XCTestCase {
11461146 }
11471147
11481148 func testCrossModuleFunctionalityWithPreparationNoSkipping( ) async throws {
1149- var options = SourceKitLSPOptions . testDefault ( )
1149+ var options = try await SourceKitLSPOptions . testDefault ( )
11501150 options. backgroundPreparationMode = . noLazy
11511151 let project = try await SwiftPMTestProject (
11521152 files: [
@@ -1430,7 +1430,7 @@ final class BackgroundIndexingTests: XCTestCase {
14301430 func testCancelIndexing( ) async throws {
14311431 try SkipUnless . longTestsEnabled ( )
14321432
1433- var options = SourceKitLSPOptions . testDefault ( )
1433+ var options = try await SourceKitLSPOptions . testDefault ( )
14341434 options. backgroundPreparationMode = . enabled
14351435 options. indexOrDefault. updateIndexStoreTimeout = 1 /* second */
14361436
0 commit comments