Skip to content

Commit 9c3159c

Browse files
committed
Fix failed test case
1 parent 0194fbe commit 9c3159c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,15 @@ final class MSALNativeAuthSignInUsernameAndPasswordEndToEndTests: MSALNativeAuth
243243
XCTFail("Missing information")
244244
return
245245
}
246-
246+
247247
let signInExpectation = expectation(description: "signing in")
248-
let signInDelegateSpy = SignInStartDelegateSpy(expectation: signInExpectation)
249-
250-
sut.signIn(username: username, password: password, correlationId: correlationId, delegate: signInDelegateSpy)
248+
let signInDelegateSpy = SignInPasswordStartDelegateSpy(expectation: signInExpectation)
249+
250+
let signInParam = MSALNativeAuthSignInParameters(username: username)
251+
signInParam.password = password
252+
signInParam.correlationId = correlationId
253+
254+
sut.signIn(parameters: signInParam, delegate: signInDelegateSpy)
251255

252256
await fulfillment(of: [signInExpectation])
253257

0 commit comments

Comments
 (0)