@@ -212,7 +212,7 @@ final class MultitouchManagerTests: XCTestCase {
212212 ) {
213213 expectation. fulfill ( )
214214 }
215- wait ( for: [ expectation] , timeout: 1 .0)
215+ wait ( for: [ expectation] , timeout: 2 .0)
216216
217217 XCTAssertFalse ( manager. isMonitoring)
218218 XCTAssertFalse ( manager. isEnabled)
@@ -303,7 +303,7 @@ final class MultitouchManagerTests: XCTestCase {
303303 ) {
304304 expectation. fulfill ( )
305305 }
306- wait ( for: [ expectation] , timeout: 1 .0)
306+ wait ( for: [ expectation] , timeout: 3 .0)
307307
308308 // We expect:
309309 // 1 initial creation
@@ -339,7 +339,7 @@ final class MultitouchManagerTests: XCTestCase {
339339 ) {
340340 expectation. fulfill ( )
341341 }
342- wait ( for: [ expectation] , timeout: 1 .0)
342+ wait ( for: [ expectation] , timeout: 3 .0)
343343
344344 // Verify manager is still stopped
345345 XCTAssertFalse ( manager. isMonitoring, " Manager should remain stopped " )
@@ -1688,7 +1688,7 @@ final class MultitouchManagerTests: XCTestCase {
16881688 ) {
16891689 expectation. fulfill ( )
16901690 }
1691- wait ( for: [ expectation] , timeout: 1 .0)
1691+ wait ( for: [ expectation] , timeout: 3 .0)
16921692
16931693 // After restart, monitoring should still be active
16941694 XCTAssertTrue ( manager. isMonitoring)
@@ -1722,7 +1722,7 @@ final class MultitouchManagerTests: XCTestCase {
17221722 ) {
17231723 expectation. fulfill ( )
17241724 }
1725- wait ( for: [ expectation] , timeout: 1 .0)
1725+ wait ( for: [ expectation] , timeout: 3 .0)
17261726
17271727 XCTAssertFalse ( manager. isEnabled)
17281728 XCTAssertTrue ( manager. isMonitoring)
@@ -1767,7 +1767,7 @@ final class MultitouchManagerTests: XCTestCase {
17671767 ) {
17681768 restartExpectation. fulfill ( )
17691769 }
1770- wait ( for: [ restartExpectation] , timeout: 1 .0)
1770+ wait ( for: [ restartExpectation] , timeout: 3 .0)
17711771
17721772 XCTAssertTrue ( manager. isMonitoring)
17731773
@@ -1806,7 +1806,7 @@ final class MultitouchManagerTests: XCTestCase {
18061806 ) {
18071807 expectation. fulfill ( )
18081808 }
1809- wait ( for: [ expectation] , timeout: 1 .0)
1809+ wait ( for: [ expectation] , timeout: 3 .0)
18101810
18111811 unsafe XCTAssertEqual( mockDevice. startCallCount, 2 ) // Now restarted
18121812
@@ -1819,7 +1819,7 @@ final class MultitouchManagerTests: XCTestCase {
18191819 MultitouchManager . restartCleanupDelay, 0 ,
18201820 " restartCleanupDelay should be positive " )
18211821 XCTAssertLessThanOrEqual (
1822- MultitouchManager . restartCleanupDelay, 0.5 ,
1822+ MultitouchManager . restartCleanupDelay, 1.0 ,
18231823 " restartCleanupDelay should not be excessive " )
18241824 }
18251825
@@ -1829,7 +1829,7 @@ final class MultitouchManagerTests: XCTestCase {
18291829 MultitouchManager . minimumRestartInterval, 0 ,
18301830 " minimumRestartInterval should be positive " )
18311831 XCTAssertLessThanOrEqual (
1832- MultitouchManager . minimumRestartInterval, 1.0 ,
1832+ MultitouchManager . minimumRestartInterval, 2.5 ,
18331833 " minimumRestartInterval should not be excessive " )
18341834 }
18351835
@@ -1863,7 +1863,7 @@ final class MultitouchManagerTests: XCTestCase {
18631863 ) {
18641864 expectation. fulfill ( )
18651865 }
1866- wait ( for: [ expectation] , timeout: 2 .0)
1866+ wait ( for: [ expectation] , timeout: 5 .0)
18671867
18681868 // We expect far fewer than 10 device creations due to:
18691869 // 1. The first restart being in progress blocks subsequent ones
@@ -1903,7 +1903,7 @@ final class MultitouchManagerTests: XCTestCase {
19031903 ) {
19041904 expectation. fulfill ( )
19051905 }
1906- wait ( for: [ expectation] , timeout: 1 .0)
1906+ wait ( for: [ expectation] , timeout: 3 .0)
19071907
19081908 // Only 2 device creations: initial start + one restart
19091909 // The duplicate restart calls while in progress should have been skipped
@@ -1933,7 +1933,7 @@ final class MultitouchManagerTests: XCTestCase {
19331933 ) {
19341934 expectation. fulfill ( )
19351935 }
1936- wait ( for: [ expectation] , timeout: 3 .0)
1936+ wait ( for: [ expectation] , timeout: 5 .0)
19371937
19381938 // Should still be monitoring after all restarts
19391939 XCTAssertTrue ( manager. isMonitoring)
@@ -1980,7 +1980,7 @@ final class MultitouchManagerTests: XCTestCase {
19801980 ) {
19811981 restartExpectation. fulfill ( )
19821982 }
1983- wait ( for: [ restartExpectation] , timeout: 1 .0)
1983+ wait ( for: [ restartExpectation] , timeout: 3 .0)
19841984
19851985 XCTAssertTrue ( manager. isMonitoring)
19861986
0 commit comments