Skip to content

Commit 0a6877b

Browse files
committed
Clean everything
1 parent 35ffe41 commit 0a6877b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

IdentityCore/tests/MSIDWorkPlaceJoinUtilTests.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)