Skip to content

Commit 2c53a3b

Browse files
committed
SSPR fix
1 parent 05cc62d commit 2c53a3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MSAL/test/integration/native_auth/end_to_end/reset_password/MSALNativeAuthResetPasswordEndToEndTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,17 @@ final class MSALNativeAuthResetPasswordEndToEndTests: MSALNativeAuthEndToEndBase
184184

185185
// User Case 3.1.5 SSPR - Email is not found in records
186186
func test_resetPassword_emailNotFound_error() async throws {
187-
guard let sut = initialisePublicClientApplication(),
188-
let username = retrieveUsernameForResetPassword()
189-
else {
187+
guard let sut = initialisePublicClientApplication() else {
190188
XCTFail("Missing information")
191189
return
192190
}
193191

194192
let resetPasswordFailureExp = expectation(description: "reset password user not found")
195193
let resetPasswordStartDelegate = ResetPasswordStartDelegateSpy(expectation: resetPasswordFailureExp)
196194

197-
sut.resetPassword(username: username, delegate: resetPasswordStartDelegate)
195+
let unknownUsername = UUID().uuidString + "@contoso.com"
196+
197+
sut.resetPassword(username: unknownUsername, delegate: resetPasswordStartDelegate)
198198

199199
await fulfillment(of: [resetPasswordFailureExp])
200200

0 commit comments

Comments
 (0)