From 37054cb67f9a7e2aac5136ea719512b3f772c9da Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 17 Sep 2024 16:45:01 -0400 Subject: [PATCH] Fix timeout in MTRSwiftPairingTests. 3 seconds is not enough time to do commissioning, sometimes. --- src/darwin/Framework/CHIPTests/MTRSwiftPairingTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/darwin/Framework/CHIPTests/MTRSwiftPairingTests.swift b/src/darwin/Framework/CHIPTests/MTRSwiftPairingTests.swift index 907b9a2761673c..6e195935368304 100644 --- a/src/darwin/Framework/CHIPTests/MTRSwiftPairingTests.swift +++ b/src/darwin/Framework/CHIPTests/MTRSwiftPairingTests.swift @@ -12,6 +12,7 @@ struct PairingConstants { static let onboardingPayload = "MT:-24J0AFN00KA0648G00" static let deviceID = 0x12344321 static let timeoutInSeconds : UInt16 = 3 + static let pairingTimeoutInSeconds : UInt16 = 60 } class MTRSwiftPairingTestControllerDelegate : NSObject, MTRDeviceControllerDelegate { @@ -96,7 +97,7 @@ class MTRSwiftPairingTests : XCTestCase { return } - wait(for: [expectation], timeout: TimeInterval(PairingConstants.timeoutInSeconds)) + wait(for: [expectation], timeout: TimeInterval(PairingConstants.pairingTimeoutInSeconds)) ResetCommissionee(MTRBaseDevice(nodeID: PairingConstants.deviceID as NSNumber, controller: controller), DispatchQueue.main, self, PairingConstants.timeoutInSeconds)