@@ -173,7 +173,7 @@ final class BuildSystemManagerTests: XCTestCase {
173
173
( a, . swift, fallbackBuildSettings ( for: a, language: . swift, options: . init( ) ) , changed)
174
174
] )
175
175
await buildSystem. setBuildSettings ( for: a, to: nil )
176
- try await fulfillmentOfOrThrow ( [ changed] )
176
+ try await fulfillmentOfOrThrow ( changed)
177
177
}
178
178
179
179
func testSettingsMainFileInitialNil( ) async throws {
@@ -187,7 +187,7 @@ final class BuildSystemManagerTests: XCTestCase {
187
187
let changed = expectation ( description: " changed settings " )
188
188
await del. setExpected ( [ ( a, . swift, FileBuildSettings ( compilerArguments: [ " x " ] , language: . swift) , changed) ] )
189
189
await buildSystem. setBuildSettings ( for: a, to: TextDocumentSourceKitOptionsResponse ( compilerArguments: [ " x " ] ) )
190
- try await fulfillmentOfOrThrow ( [ changed] )
190
+ try await fulfillmentOfOrThrow ( changed)
191
191
}
192
192
193
193
func testSettingsMainFileWithFallback( ) async throws {
@@ -211,12 +211,12 @@ final class BuildSystemManagerTests: XCTestCase {
211
211
for: a,
212
212
to: TextDocumentSourceKitOptionsResponse ( compilerArguments: [ " non-fallback " , " args " ] )
213
213
)
214
- try await fulfillmentOfOrThrow ( [ changed] )
214
+ try await fulfillmentOfOrThrow ( changed)
215
215
216
216
let revert = expectation ( description: " revert to fallback settings " )
217
217
await del. setExpected ( [ ( a, . swift, fallbackSettings, revert) ] )
218
218
await buildSystem. setBuildSettings ( for: a, to: nil )
219
- try await fulfillmentOfOrThrow ( [ revert] )
219
+ try await fulfillmentOfOrThrow ( revert)
220
220
}
221
221
222
222
func testSettingsHeaderChangeMainFile( ) async throws {
@@ -257,20 +257,20 @@ final class BuildSystemManagerTests: XCTestCase {
257
257
let changed = expectation ( description: " changed settings to cpp2 " )
258
258
await del. setExpected ( [ ( h, . c, FileBuildSettings ( compilerArguments: [ " C++ 2 " ] , language: . c) , changed) ] )
259
259
await manager. mainFilesChanged ( )
260
- try await fulfillmentOfOrThrow ( [ changed] )
260
+ try await fulfillmentOfOrThrow ( changed)
261
261
262
262
let changed2 = expectation ( description: " still cpp2, no update " )
263
263
changed2. isInverted = true
264
264
await del. setExpected ( [ ( h, . c, nil , changed2) ] )
265
265
await manager. mainFilesChanged ( )
266
- try await fulfillmentOfOrThrow ( [ changed2] , timeout: 1 )
266
+ try await fulfillmentOfOrThrow ( changed2, timeout: 1 )
267
267
268
268
await mainFiles. updateMainFiles ( for: h, to: [ cpp1, cpp2] )
269
269
270
270
let changed3 = expectation ( description: " added lexicographically earlier main file " )
271
271
await del. setExpected ( [ ( h, . c, FileBuildSettings ( compilerArguments: [ " C++ 1 " ] , language: . c) , changed3) ] )
272
272
await manager. mainFilesChanged ( )
273
- try await fulfillmentOfOrThrow ( [ changed3] , timeout: 1 )
273
+ try await fulfillmentOfOrThrow ( changed3, timeout: 1 )
274
274
275
275
await mainFiles. updateMainFiles ( for: h, to: [ ] )
276
276
@@ -279,7 +279,7 @@ final class BuildSystemManagerTests: XCTestCase {
279
279
( h, . c, fallbackBuildSettings ( for: h, language: . cpp, options: . init( ) ) , changed4)
280
280
] )
281
281
await manager. mainFilesChanged ( )
282
- try await fulfillmentOfOrThrow ( [ changed4] )
282
+ try await fulfillmentOfOrThrow ( changed4)
283
283
}
284
284
285
285
func testSettingsOneMainTwoHeader( ) async throws {
@@ -332,7 +332,7 @@ final class BuildSystemManagerTests: XCTestCase {
332
332
for: cpp,
333
333
to: TextDocumentSourceKitOptionsResponse ( compilerArguments: [ newCppArg, cpp. pseudoPath] )
334
334
)
335
- try await fulfillmentOfOrThrow ( [ changed1, changed2] )
335
+ try await fulfillmentOfOrThrow ( changed1, changed2)
336
336
}
337
337
}
338
338
0 commit comments