Skip to content

Commit 35ffe41

Browse files
committed
Commenting tests to check flakiness in base class
1 parent 3bca5d0 commit 35ffe41

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

IdentityCore/tests/MSIDWorkPlaceJoinUtilTransportKeyTests.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#import "MSIDWPJKeyPairWithCert.h"
3030

3131

32-
#if TARGET_OS_IOS
33-
@interface MSIDWorkPlaceJoinUtilTransportKeyTests : MSIDWorkPlaceJoinUtilTests
32+
#if FALSE
33+
@interface MSIDWorkPlaceJoinUtilTransportKeyTests
3434
-(void)insertEccStkKeyForTenantIdentifier:(NSString *)tenantIdentifier;
3535
@end
3636

@@ -160,10 +160,11 @@ - (void)testGetWPJKeysWithTenantId_whenEccRegistrationWithTransportKey_shouldRet
160160

161161
- (void)testGetWPJKeysWithTenantId_whenEccRegistrationWithMissingTransportKey_shouldReturnOnlyDeviceKey
162162
{
163-
[self insertDummyEccRegistrationForTenantIdentifier:self.tenantId certIdentifier:kDummyTenant1CertIdentifier useSecureEnclave:YES];
163+
NSString *tid = self.tenantId;
164+
[self insertDummyEccRegistrationForTenantIdentifier:tid certIdentifier:kDummyTenant1CertIdentifier useSecureEnclave:YES];
164165
// Don't insert transport key - simulate missing STK scenario
165166

166-
MSIDWPJKeyPairWithCert *result = [MSIDWorkPlaceJoinUtil getWPJKeysWithTenantId:self.tenantId context:nil];
167+
MSIDWPJKeyPairWithCert *result = [MSIDWorkPlaceJoinUtil getWPJKeysWithTenantId:tid context:nil];
167168

168169
XCTAssertNotNil(result);
169170
XCTAssertEqual(result.keyChainVersion, MSIDWPJKeychainAccessGroupV2);

0 commit comments

Comments
 (0)