Skip to content

Commit

Permalink
Add config modification for the testSuccess, which causes the failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-YuXin committed Nov 26, 2024
1 parent c2e96b6 commit 38f1f2d
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,16 @@ class SignInEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest()
* (hero scenario 15, use case 1.2.1, Test case 37)
*/
@Test
fun testSuccess() = runTest {
val username = config.email
val password = getSafePassword()
val result = application.signIn(username, password.toCharArray())
Assert.assertTrue(result is SignInResult.Complete)
fun testSuccess() {
config = getConfig(defaultConfigType)
application = setupPCA(config, defaultChallengeTypes)

runBlocking {
val username = config.email
val password = getSafePassword()
val result = application.signIn(username, password.toCharArray())
Assert.assertTrue(result is SignInResult.Complete)
}
}

/**
Expand Down

0 comments on commit 38f1f2d

Please sign in to comment.