Skip to content

Commit

Permalink
Fix failed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-YuXin committed Feb 25, 2025
1 parent 0194fbe commit 9c3159c
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,15 @@ final class MSALNativeAuthSignInUsernameAndPasswordEndToEndTests: MSALNativeAuth
XCTFail("Missing information")
return
}

let signInExpectation = expectation(description: "signing in")
let signInDelegateSpy = SignInStartDelegateSpy(expectation: signInExpectation)

sut.signIn(username: username, password: password, correlationId: correlationId, delegate: signInDelegateSpy)
let signInDelegateSpy = SignInPasswordStartDelegateSpy(expectation: signInExpectation)

let signInParam = MSALNativeAuthSignInParameters(username: username)
signInParam.password = password
signInParam.correlationId = correlationId

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

await fulfillment(of: [signInExpectation])

Expand Down

0 comments on commit 9c3159c

Please sign in to comment.