Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Close commissioner session to properly cleanup resources #37522

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/python_testing/TC_CGEN_2_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ async def test_TC_CGEN_2_8(self):
"First CommissioningComplete failed",
)

# Close the commissioner session with the device to clean up resources
commissioner.CloseSession(nodeid=self.dut_node_id)

# Step 5: Factory reset is handled by test operator
self.step(5)
if not self.check_pics('PICS_USER_PROMPT'):
Expand Down
3 changes: 3 additions & 0 deletions src/python_testing/TC_CGEN_2_9.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ async def test_TC_CGEN_2_9(self):
self.step(5)
await self.remove_commissioner_fabric()

# Close the commissioner session with the device to clean up resources
commissioner.CloseSession(nodeid=self.dut_node_id)

# Step 6: Put device in commissioning mode (requiring user input, so skip in CI)
self.step(6)
if not self.check_pics('PICS_USER_PROMPT'):
Expand Down
Loading