Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-YuXin committed Feb 14, 2025
1 parent 9fd0cf5 commit 1e0c2e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class SSPRTest : NativeAuthPublicClientApplicationAbstractTest() {
application = setupPCA(config, defaultChallengeTypes)

runBlocking {
val username = INVALID_EMAIL
val username = tempEmailApi.generateRandomEmailAddressLocally()
val result = application.resetPassword(username)
Assert.assertTrue(result is ResetPasswordError)
Assert.assertTrue((result as ResetPasswordError).isUserNotFound())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ class SignInEmailOTPTest : NativeAuthPublicClientApplicationAbstractTest() {

retryOperation {
runBlocking {
val user = config.email
// Turn correct username into an incorrect one
val invalidUser = user + "x"
val signInResult = application.signIn(invalidUser)
val username = tempEmailApi.generateRandomEmailAddressLocally()
val signInResult = application.signIn(username)
Assert.assertTrue(signInResult is SignInError)
Assert.assertTrue((signInResult as SignInError).isUserNotFound())
}
Expand Down

0 comments on commit 1e0c2e6

Please sign in to comment.