Skip to content

Commit

Permalink
More unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jtung-apple committed Dec 12, 2024
1 parent 2306949 commit 8a298ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/darwin/Framework/CHIPTests/MTRPerControllerStorageTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -2053,6 +2053,27 @@ - (void)test014_TestDataStoreMTRDeviceInvalidateFlush

// Make sure there are more than base count entries
XCTAssertGreaterThan(storageDelegate.count, baseStorageKeyCount);

// Now restart controller to decommission the device
controller = [self startControllerWithRootKeys:rootKeys
operationalKeys:operationalKeys
fabricID:fabricID
nodeID:nodeID
storage:storageDelegate
error:&error
certificateIssuer:&certificateIssuer
storageBehaviorConfiguration:storageBehaviorConfiguration];
XCTAssertNil(error);
XCTAssertNotNil(controller);
XCTAssertTrue([controller isRunning]);

XCTAssertEqualObjects(controller.controllerNodeID, nodeID);

// Reset our commissionee.
__auto_type * baseDevice = [MTRBaseDevice deviceWithNodeID:deviceID controller:controller];
ResetCommissionee(baseDevice, queue, self, kTimeoutInSeconds);

[controller shutdown];
}

// TODO: This might want to go in a separate test file, with some shared setup
Expand Down

0 comments on commit 8a298ea

Please sign in to comment.