@@ -143,7 +143,8 @@ async def test_wifi(self, endpointId):
143
143
logger .info (f"Scan networks" )
144
144
req = Clusters .NetworkCommissioning .Commands .ScanNetworks (
145
145
ssid = b'' , breadcrumb = self .with_breadcrumb ())
146
- res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req )
146
+ interactionTimeoutMs = self ._devCtrl .ComputeRoundTripTimeout (self ._nodeid , upperLayerProcessingTimeoutMs = 30000 )
147
+ res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req , interactionTimeoutMs = interactionTimeoutMs )
147
148
logger .info (f"Received response: { res } " )
148
149
if res .networkingStatus != Clusters .NetworkCommissioning .Enums .NetworkCommissioningStatus .kSuccess :
149
150
raise AssertionError (f"Unexpected result: { res .networkingStatus } " )
@@ -198,7 +199,8 @@ async def test_wifi(self, endpointId):
198
199
logger .info (f"Connect to a network" )
199
200
req = Clusters .NetworkCommissioning .Commands .ConnectNetwork (
200
201
networkID = TEST_WIFI_SSID .encode (), breadcrumb = self .with_breadcrumb ())
201
- res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req )
202
+ interactionTimeoutMs = self ._devCtrl .ComputeRoundTripTimeout (self ._nodeid , upperLayerProcessingTimeoutMs = 30000 )
203
+ res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req , interactionTimeoutMs = interactionTimeoutMs )
202
204
logger .info (f"Got response: { res } " )
203
205
if res .networkingStatus != Clusters .NetworkCommissioning .Enums .NetworkCommissioningStatus .kSuccess :
204
206
raise AssertionError (f"Unexpected result: { res .networkingStatus } " )
@@ -277,7 +279,8 @@ async def test_thread(self, endpointId):
277
279
logger .info (f"Scan networks" )
278
280
req = Clusters .NetworkCommissioning .Commands .ScanNetworks (
279
281
ssid = b'' , breadcrumb = self .with_breadcrumb ())
280
- res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req )
282
+ interactionTimeoutMs = self ._devCtrl .ComputeRoundTripTimeout (self ._nodeid , upperLayerProcessingTimeoutMs = 30000 )
283
+ res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req , interactionTimeoutMs = interactionTimeoutMs )
281
284
logger .info (f"Received response: { res } " )
282
285
if res .networkingStatus != Clusters .NetworkCommissioning .Enums .NetworkCommissioningStatus .kSuccess :
283
286
raise AssertionError (f"Unexpected result: { res .networkingStatus } " )
@@ -332,7 +335,8 @@ async def test_thread(self, endpointId):
332
335
logger .info (f"Connect to a network" )
333
336
req = Clusters .NetworkCommissioning .Commands .ConnectNetwork (
334
337
networkID = TEST_THREAD_NETWORK_IDS [0 ], breadcrumb = self .with_breadcrumb ())
335
- res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req )
338
+ interactionTimeoutMs = self ._devCtrl .ComputeRoundTripTimeout (self ._nodeid , upperLayerProcessingTimeoutMs = 30000 )
339
+ res = await self ._devCtrl .SendCommand (nodeid = self ._nodeid , endpoint = endpointId , payload = req , interactionTimeoutMs = interactionTimeoutMs )
336
340
logger .info (f"Got response: { res } " )
337
341
if res .networkingStatus != Clusters .NetworkCommissioning .Enums .NetworkCommissioningStatus .kSuccess :
338
342
raise AssertionError (f"Unexpected result: { res .networkingStatus } " )
0 commit comments