forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix commissioning with a node ID we've used before to not reuse CASE …
…sessions. This was coming up in some cert tests, where we commission a device, then factory reset it, then try to commission it again with the same node id. When we went to send CommissioningComplete for the second commissioning, we would try to reuse the existing CASE session (to the pre-reset device), which obviously failed. The fix is to just ensure we have no existing sessions to the relevant node id before we start CASE setup. Also adds a unit test for this case. This caught a bug in the test harness: factoryReset was clearing the KVS of running processes without restarting them, which is not how factory reset would normally work.
- Loading branch information
1 parent
c1ca759
commit 5a34b79
Showing
4 changed files
with
152 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 87 additions & 21 deletions
108
zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.