File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ - (void)setUp {
7070 self.useIosStyleKeychain = NO ;
7171#endif
7272 self.tenantId = NSUUID .UUID .UUIDString ;
73+ [self cleanWPJ: [self keychainGroup: YES ]];
74+ [self cleanWPJ: [self keychainGroup: NO ]];
7375}
7476
7577- (void )tearDown
@@ -139,8 +141,9 @@ - (void)testGetWPJKeysWithTenantId_whenWPJInDefaultWithSameTenant_EccBasedRegNoS
139141
140142- (void )testGetWPJKeysWithTenantId_whenWPJInDefaultWithSameTenant_EccBasedRegUsingSecureEnclave_shouldReturnDefault
141143{
142- [self insertDummyEccRegistrationForTenantIdentifier: self .tenantId certIdentifier: kDummyTenant1CertIdentifier useSecureEnclave: YES ];
143- MSIDWPJKeyPairWithCert *result = [MSIDWorkPlaceJoinUtil getWPJKeysWithTenantId: self .tenantId context: nil ];
144+ NSString *tid = self.tenantId ;
145+ [self insertDummyEccRegistrationForTenantIdentifier: tid certIdentifier: kDummyTenant1CertIdentifier useSecureEnclave: YES ];
146+ MSIDWPJKeyPairWithCert *result = [MSIDWorkPlaceJoinUtil getWPJKeysWithTenantId: tid context: nil ];
144147 XCTAssertNotNil (result);
145148 XCTAssertEqual (result.keyChainVersion , MSIDWPJKeychainAccessGroupV2);
146149 CFStringRef cName = NULL ;
You can’t perform that action at this time.
0 commit comments