Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng-yang committed Jun 5, 2023
1 parent 7286cda commit 02d6501
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/controller/python/test/test_scripts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def TestRevokeCommissioningWindow(self, ip: str, setuppin: int, nodeid: in
return True

def TestEnhancedCommissioningWindow(self, ip: str, nodeid: int):
pin, _ = self.devCtrl.OpenCommissioningWindow(nodeid=nodeid, timeout=600, iteration=10000, discriminator=3840, option=1)
pin, _, _ = self.devCtrl.OpenCommissioningWindow(nodeid=nodeid, timeout=600, iteration=10000, discriminator=3840, option=1)
return self.TestPaseOnly(ip=ip, nodeid=nodeid, setuppin=pin, devCtrl=self.devCtrl2)

def TestPaseOnly(self, ip: str, setuppin: int, nodeid: int, devCtrl=None):
Expand Down
4 changes: 2 additions & 2 deletions src/python_testing/TC_CGEN_2_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def CommissionToStageSendCompleteAndCleanup(
self, stage: int, expectedErrorPart: chip.native.ErrorSDKPart, expectedErrCode: int):

logging.info("-----------------Fail on step {}-------------------------".format(stage))
pin, _ = self.OpenCommissioningWindow()
pin, _, _ = self.OpenCommissioningWindow()
self.th2.ResetTestCommissioner()
# This will run the commissioning up to the point where stage x is run and the
# response is sent before the test commissioner simulates a failure
Expand Down Expand Up @@ -86,7 +86,7 @@ async def test_TC_CGEN_2_4(self):
await self.CommissionToStageSendCompleteAndCleanup(13, chip.native.ErrorSDKPart.IM_CLUSTER_STATUS, 0x02)

logging.info('Step 15 - TH1 opens a commissioning window')
pin, _ = self.OpenCommissioningWindow()
pin, _, _ = self.OpenCommissioningWindow()

logging.info('Step 16 - TH2 fully commissions the DUT')
self.th2.ResetTestCommissioner()
Expand Down
2 changes: 1 addition & 1 deletion src/python_testing/TC_DA_1_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async def test_TC_DA_1_5(self):
await self.send_single_cmd(cmd=gcomm.Commands.ArmFailSafe(expiryLengthSeconds=0, breadcrumb=1))

self.print_step(13, "Open commissioning window")
pin, _ = self.default_controller.OpenCommissioningWindow(
pin, _, _ = self.default_controller.OpenCommissioningWindow(
nodeid=self.dut_node_id, timeout=600, iteration=10000, discriminator=1234, option=1)

self.print_step(14, "Commission to TH2")
Expand Down

0 comments on commit 02d6501

Please sign in to comment.