Skip to content

Commit 975602a

Browse files
committed
chore: fix RESTWithUserPoolIntegrationTests
1 parent 064b579 commit 975602a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

AmplifyPlugins/API/Tests/APIHostApp/AWSAPIPluginRESTUserPoolTests/RESTWithUserPoolIntegrationTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ class RESTWithUserPoolIntegrationTests: XCTestCase {
137137
}
138138

139139
func signUp() async throws {
140-
let signUpResult = try await Amplify.Auth.signUp(username: username, password: password)
140+
let userAttributes = [AuthUserAttribute(.email, value: email)]
141+
let options = AuthSignUpRequest.Options(userAttributes: userAttributes)
142+
let signUpResult = try await Amplify.Auth.signUp(username: username, password: password, options: options)
141143
guard signUpResult.isSignUpComplete else {
142144
XCTFail("Sign up successful but not complete")
143145
return

0 commit comments

Comments
 (0)