Skip to content

Commit 04f37ea

Browse files
committed
Add log
1 parent 2523f82 commit 04f37ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

IdentityCore/tests/MSIDWorkPlaceJoinUtilTests.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,12 @@ - (void)testGetWPJKeysWithTenantId_whenEccRegistrationWithMissingTransportKey_sh
549549
NSString *tid = self.tenantId;
550550
[self insertDummyEccRegistrationForTenantIdentifier:tid certIdentifier:kDummyTenant1CertIdentifier useSecureEnclave:YES];
551551
// Don't insert transport key - simulate missing STK scenario
552-
552+
NSLog(@"Testing for tid: %@", tid);
553553
MSIDWPJKeyPairWithCert *result = [MSIDWorkPlaceJoinUtil getWPJKeysWithTenantId:tid context:nil];
554+
if (!result)
555+
{
556+
XCTFail(@"Could not retrieve WPJ keys for tenant %@. result : %@", tid, result);
557+
}
554558

555559
XCTAssertNotNil(result);
556560
XCTAssertEqual(result.keyChainVersion, MSIDWPJKeychainAccessGroupV2);

0 commit comments

Comments
 (0)