Skip to content

Commit 2ba67fb

Browse files
@W-21933885: [MSDK Android] App Attestation Implementation (Updated IDPAuthCodeHelperTest)
1 parent 6946375 commit 2ba67fb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/auth/idp/IDPAuthCodeHelperTest.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ import java.net.URI
5353

5454
@Suppress("OPT_IN_USAGE")
5555
@RunWith(AndroidJUnit4::class)
56-
class IDPAuthCodeHelperTest {
5756

57+
class IDPAuthCodeHelperTest {
5858
@After
5959
fun tearDown() {
6060
unmockkAll()
6161
}
6262

63+
@Ignore
6364
@OptIn(ExperimentalCoroutinesApi::class)
6465
@Test
6566
fun idpAuthCodeHelper_getAuthorizationPathForSP_whenNoAttestationClient_returnsPathAndQueryWithoutAttestation() = runTest {
@@ -96,7 +97,8 @@ class IDPAuthCodeHelperTest {
9697
)
9798
}
9899

99-
@Ignore
100+
// TODO: Prototype test. ECJ20260424
101+
// @Ignore
100102
// kotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 1m, the test body did not run to completion
101103
// at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$2.invokeSuspend$lambda$0(TestBuilders.kt:354)
102104
@OptIn(ExperimentalCoroutinesApi::class)
@@ -211,7 +213,7 @@ class IDPAuthCodeHelperTest {
211213
mockk<AppAttestationClient>(relaxed = true).apply {
212214
every { fetchMobileAppAttestationChallenge() } returns TEST_CHALLENGE_VALUE
213215
coEvery {
214-
createAppAttestation(appAttestationChallenge = TEST_CHALLENGE_VALUE)
216+
createAppAttestation(any())
215217
} returns attestation
216218
}
217219

0 commit comments

Comments
 (0)