@@ -554,34 +554,34 @@ class ExpectationsTestCase: XCTestCase {
554554// CHECK: Test Case 'ExpectationsTestCase.test_waitForExpectationsAsync' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
555555// CHECK: Test Case 'ExpectationsTestCase.test_waitForExpectationsAsync' failed \(\d+\.\d+ seconds\)
556556 func test_waitForExpectationsAsync( ) async {
557- // Basic check that waitForExpectations() is functional when used with the
558- // await keyword in an async function.
559- let expectation = self . expectation ( description: " foo " )
560- expectation. fulfill ( )
561- await self . waitForExpectations ( timeout: 0.0 )
557+ // Basic check that waitForExpectations() is functional when used with the
558+ // await keyword in an async function.
559+ let expectation = self . expectation ( description: " foo " )
560+ expectation. fulfill ( )
561+ await self . waitForExpectations ( timeout: 0.0 )
562562 }
563563
564564// CHECK: Test Case 'ExpectationsTestCase.test_waitForExpectationsFromMainActor' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
565565// CHECK: Test Case 'ExpectationsTestCase.test_waitForExpectationsFromMainActor' failed \(\d+\.\d+ seconds\)
566566 @MainActor func test_waitForExpectationsFromMainActor( ) {
567- // Basic check that waitForExpectations() is functional and does not need
568- // the await keyword when used from a main-actor-isolated test function.
569- let expectation = self . expectation ( description: " foo " )
570- expectation. fulfill ( )
571- self . waitForExpectations ( timeout: 0.0 )
567+ // Basic check that waitForExpectations() is functional and does not need
568+ // the await keyword when used from a main-actor-isolated test function.
569+ let expectation = self . expectation ( description: " foo " )
570+ expectation. fulfill ( )
571+ self . waitForExpectations ( timeout: 0.0 )
572572 }
573573
574574// CHECK: Test Case 'ExpectationsTestCase.test_waitForExpectationsFromMainActor_async' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
575575// CHECK: Test Case 'ExpectationsTestCase.test_waitForExpectationsFromMainActor_async' failed \(\d+\.\d+ seconds\)
576576 @MainActor func test_waitForExpectationsFromMainActor_async( ) async {
577- // Basic check that waitForExpectations() is functional and does not need
578- // the await keyword when used from a main-actor-isolated test function.
579- let expectation = self . expectation ( description: " foo " )
580- expectation. fulfill ( )
581- self . waitForExpectations ( timeout: 0.0 )
577+ // Basic check that waitForExpectations() is functional and does not need
578+ // the await keyword when used from a main-actor-isolated test function.
579+ let expectation = self . expectation ( description: " foo " )
580+ expectation. fulfill ( )
581+ self . waitForExpectations ( timeout: 0.0 )
582582 }
583583
584- static var allTests : [ ( String , ( ExpectationsTestCase ) -> ( ) throws -> Void ) ] = {
584+ static var allTests = {
585585 return [
586586 ( " test_waitingForAnUnfulfilledExpectation_fails " , test_waitingForAnUnfulfilledExpectation_fails) ,
587587 ( " test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails " , test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails) ,
@@ -636,8 +636,8 @@ class ExpectationsTestCase: XCTestCase {
636636
637637 // waitForExpectations() + @MainActor
638638 ( " test_waitForExpectationsAsync " , asyncTest ( test_waitForExpectationsAsync) ) ,
639- ( " test_waitForExpectationsFromMainActor " , asyncTest { test_waitForExpectationsFromMainActor ( $0 ) } ) ,
640- ( " test_waitForExpectationsFromMainActor_async " , asyncTest { test_waitForExpectationsFromMainActor_async ( $0 ) } ) ,
639+ ( " test_waitForExpectationsFromMainActor " , asyncTest ( test_waitForExpectationsFromMainActor ) ) ,
640+ ( " test_waitForExpectationsFromMainActor_async " , asyncTest ( test_waitForExpectationsFromMainActor_async ) ) ,
641641 ]
642642 } ( )
643643}
0 commit comments