Skip to content

Test/auth test failure#6636

Closed
cadivus wants to merge 8 commits intomainfrom
test/auth-test-failure
Closed

Test/auth test failure#6636
cadivus wants to merge 8 commits intomainfrom
test/auth-test-failure

Conversation

@cadivus
Copy link
Member

@cadivus cadivus commented Feb 18, 2026

Improve sign up tests to reduce flakyness

Existing approach for randomness isn't good enough
@cadivus cadivus force-pushed the test/auth-test-failure branch 9 times, most recently from 029b3f3 to 852b63b Compare February 19, 2026 16:24
@cadivus cadivus force-pushed the test/auth-test-failure branch from 852b63b to 7a1d4a3 Compare February 19, 2026 16:46
Remove duplicate addTearDown(adminDeleteUser) calls from tests.
AmplifyAuthTestPlugin.signUp already registers cleanup for every
signUp call, so the explicit teardowns added in f4bcec3 caused
each user to be deleted twice, producing UserNotFoundException.

Also fix _oneOf() to return after first success instead of
continuing to try all alternatives, which caused the same error
in adminCreateUser's teardown (it tries both username and
cognitoUsername, but the second always fails after the first
succeeds).
@cadivus cadivus closed this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant