Files
zitadel/internal/api/ui/login
be5b278069 test(login): avoid assert.Never race in forged registration check (#12548)
# Which Problems Are Solved

- `TestExternalNotFoundOption_ForgedRegistration_IsRejected` flakes
across unrelated PRs: the test reaches PASS, then panics with `Log in
goroutine after Test... has completed` and `rpc error: code = Canceled
desc = context canceled`.

# How the Problems Are Solved

- Replaces `assert.Never` with a synchronous poll helper
(`requireNeverUserByEmail`) so `ListUsers` and `require` run on the test
goroutine and finish before `TestMain` cancels `CTX`.
- Keeps the same “must stay absent for a window” polarity (not
`Eventually`), so a late-projected forged user still fails the test.

# Additional Changes

- None.

# Additional Context

- CI examples: [run
30980062306](https://github.com/zitadel/zitadel/actions/runs/30980062306),
[run
30837302974](https://github.com/zitadel/zitadel/actions/runs/30837302974)

Co-authored-by: Cursor <[email protected]>
2026-08-06 07:50:21 +02:00
..
2026-07-29 05:45:56 +02:00
2026-06-15 15:36:14 +02:00
2026-01-14 09:51:07 +01:00
2026-01-14 09:51:07 +01:00
2026-06-15 15:36:14 +02:00
2026-01-14 09:51:07 +01:00
2025-08-21 09:02:32 +02:00
2026-07-29 05:45:56 +02:00
2026-07-29 05:45:56 +02:00
2025-08-21 09:02:32 +02:00
2022-02-14 17:22:30 +01:00