Skip to content

Commit b0ec77a

Browse files
committed
Cancel password retrieval
1 parent 9c3159c commit b0ec77a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MSAL/test/integration/native_auth/end_to_end/sign_in/MSALNativeAuthSignInUserNameAndPasswordEndToEndTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ final class MSALNativeAuthSignInUsernameAndPasswordEndToEndTests: MSALNativeAuth
239239

240240
// User Case 1.2.9. Sign In - User email is registered with email OTP auth method, which is not supported by the developer (aka redirect flow)
241241
func test_signInWithOTPInsufficientChallengeResultsInError() async throws {
242-
guard let sut = initialisePublicClientApplication(challengeTypes: [.password]), let username = retrieveUsernameForSignInCode(), let password = await retrievePasswordForSignInUsername() else {
242+
guard let sut = initialisePublicClientApplication(challengeTypes: [.password]), let username = retrieveUsernameForSignInCode() else {
243243
XCTFail("Missing information")
244244
return
245245
}
@@ -248,7 +248,7 @@ final class MSALNativeAuthSignInUsernameAndPasswordEndToEndTests: MSALNativeAuth
248248
let signInDelegateSpy = SignInPasswordStartDelegateSpy(expectation: signInExpectation)
249249

250250
let signInParam = MSALNativeAuthSignInParameters(username: username)
251-
signInParam.password = password
251+
signInParam.password = "testpassword"
252252
signInParam.correlationId = correlationId
253253

254254
sut.signIn(parameters: signInParam, delegate: signInDelegateSpy)

0 commit comments

Comments
 (0)