@@ -461,32 +461,6 @@ class ExpectationsTestCase: XCTestCase {
461
461
RunLoop . main. run ( until: Date ( ) + 1 )
462
462
}
463
463
464
- // CHECK: Test Case 'ExpectationsTestCase.test_multithreadedXCTestCaseConveniences' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
465
- // CHECK: Test Case 'ExpectationsTestCase.test_multithreadedXCTestCaseConveniences' passed \(\d+\.\d+ seconds\)
466
- func test_multithreadedXCTestCaseConveniences( ) {
467
- let iterationCount = 10 // Increase for more thorough stress test
468
-
469
- for _ in 0 ..< iterationCount {
470
- let aStarted = XCTestExpectation ( description: " Thread A started " )
471
- let bStarted = XCTestExpectation ( description: " Thread B started " )
472
- let aFinished = XCTestExpectation ( description: " Thread A finished " )
473
- let bFinished = XCTestExpectation ( description: " Thread B finished " )
474
-
475
- Thread . detachNewThread {
476
- aStarted. fulfill ( )
477
- self . wait ( for: [ bStarted] , timeout: 1 )
478
- aFinished. fulfill ( )
479
- }
480
- Thread . detachNewThread {
481
- bStarted. fulfill ( )
482
- self . wait ( for: [ aStarted] , timeout: 1 )
483
- bFinished. fulfill ( )
484
- }
485
-
486
- wait ( for: [ aFinished, bFinished] , timeout: 2 )
487
- }
488
- }
489
-
490
464
static var allTests = {
491
465
return [
492
466
( " test_waitingForAnUnfulfilledExpectation_fails " , test_waitingForAnUnfulfilledExpectation_fails) ,
@@ -532,16 +506,15 @@ class ExpectationsTestCase: XCTestCase {
532
506
// Regressions
533
507
( " test_fulfillmentOnSecondaryThread " , test_fulfillmentOnSecondaryThread) ,
534
508
( " test_runLoopInsideDispatch " , test_runLoopInsideDispatch) ,
535
- ( " test_multithreadedXCTestCaseConveniences " , test_multithreadedXCTestCaseConveniences) ,
536
509
]
537
510
} ( )
538
511
}
539
512
// CHECK: Test Suite 'ExpectationsTestCase' failed at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
540
- // CHECK: \t Executed 32 tests, with 17 failures \(0 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
513
+ // CHECK: \t Executed 31 tests, with 17 failures \(0 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
541
514
542
515
XCTMain ( [ testCase ( ExpectationsTestCase . allTests) ] )
543
516
544
517
// CHECK: Test Suite '.*\.xctest' failed at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
545
- // CHECK: \t Executed 32 tests, with 17 failures \(0 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
518
+ // CHECK: \t Executed 31 tests, with 17 failures \(0 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
546
519
// CHECK: Test Suite 'All tests' failed at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
547
- // CHECK: \t Executed 32 tests, with 17 failures \(0 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
520
+ // CHECK: \t Executed 31 tests, with 17 failures \(0 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
0 commit comments