@@ -173,7 +173,7 @@ final class BuildSystemManagerTests: XCTestCase {
173173 ( a, . swift, fallbackBuildSettings ( for: a, language: . swift, options: . init( ) ) , changed)
174174 ] )
175175 await buildSystem. setBuildSettings ( for: a, to: nil )
176- try await fulfillmentOfOrThrow ( [ changed] )
176+ try await fulfillmentOfOrThrow ( changed)
177177 }
178178
179179 func testSettingsMainFileInitialNil( ) async throws {
@@ -187,7 +187,7 @@ final class BuildSystemManagerTests: XCTestCase {
187187 let changed = expectation ( description: " changed settings " )
188188 await del. setExpected ( [ ( a, . swift, FileBuildSettings ( compilerArguments: [ " x " ] , language: . swift) , changed) ] )
189189 await buildSystem. setBuildSettings ( for: a, to: TextDocumentSourceKitOptionsResponse ( compilerArguments: [ " x " ] ) )
190- try await fulfillmentOfOrThrow ( [ changed] )
190+ try await fulfillmentOfOrThrow ( changed)
191191 }
192192
193193 func testSettingsMainFileWithFallback( ) async throws {
@@ -211,12 +211,12 @@ final class BuildSystemManagerTests: XCTestCase {
211211 for: a,
212212 to: TextDocumentSourceKitOptionsResponse ( compilerArguments: [ " non-fallback " , " args " ] )
213213 )
214- try await fulfillmentOfOrThrow ( [ changed] )
214+ try await fulfillmentOfOrThrow ( changed)
215215
216216 let revert = expectation ( description: " revert to fallback settings " )
217217 await del. setExpected ( [ ( a, . swift, fallbackSettings, revert) ] )
218218 await buildSystem. setBuildSettings ( for: a, to: nil )
219- try await fulfillmentOfOrThrow ( [ revert] )
219+ try await fulfillmentOfOrThrow ( revert)
220220 }
221221
222222 func testSettingsHeaderChangeMainFile( ) async throws {
@@ -257,20 +257,20 @@ final class BuildSystemManagerTests: XCTestCase {
257257 let changed = expectation ( description: " changed settings to cpp2 " )
258258 await del. setExpected ( [ ( h, . c, FileBuildSettings ( compilerArguments: [ " C++ 2 " ] , language: . c) , changed) ] )
259259 await manager. mainFilesChanged ( )
260- try await fulfillmentOfOrThrow ( [ changed] )
260+ try await fulfillmentOfOrThrow ( changed)
261261
262262 let changed2 = expectation ( description: " still cpp2, no update " )
263263 changed2. isInverted = true
264264 await del. setExpected ( [ ( h, . c, nil , changed2) ] )
265265 await manager. mainFilesChanged ( )
266- try await fulfillmentOfOrThrow ( [ changed2] , timeout: 1 )
266+ try await fulfillmentOfOrThrow ( changed2, timeout: 1 )
267267
268268 await mainFiles. updateMainFiles ( for: h, to: [ cpp1, cpp2] )
269269
270270 let changed3 = expectation ( description: " added lexicographically earlier main file " )
271271 await del. setExpected ( [ ( h, . c, FileBuildSettings ( compilerArguments: [ " C++ 1 " ] , language: . c) , changed3) ] )
272272 await manager. mainFilesChanged ( )
273- try await fulfillmentOfOrThrow ( [ changed3] , timeout: 1 )
273+ try await fulfillmentOfOrThrow ( changed3, timeout: 1 )
274274
275275 await mainFiles. updateMainFiles ( for: h, to: [ ] )
276276
@@ -279,7 +279,7 @@ final class BuildSystemManagerTests: XCTestCase {
279279 ( h, . c, fallbackBuildSettings ( for: h, language: . cpp, options: . init( ) ) , changed4)
280280 ] )
281281 await manager. mainFilesChanged ( )
282- try await fulfillmentOfOrThrow ( [ changed4] )
282+ try await fulfillmentOfOrThrow ( changed4)
283283 }
284284
285285 func testSettingsOneMainTwoHeader( ) async throws {
@@ -332,7 +332,7 @@ final class BuildSystemManagerTests: XCTestCase {
332332 for: cpp,
333333 to: TextDocumentSourceKitOptionsResponse ( compilerArguments: [ newCppArg, cpp. pseudoPath] )
334334 )
335- try await fulfillmentOfOrThrow ( [ changed1, changed2] )
335+ try await fulfillmentOfOrThrow ( changed1, changed2)
336336 }
337337}
338338
0 commit comments