You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Random-name test can fail on valid duplicate draws #722
tests/components/util/test_name_generator.py::test_generate_name_generates_names_randomly asserts that two unseeded random names differ. Duplicate draws are valid, so the assertion intermittently fails an otherwise passing suite.
Both calls return Creative Sky Blue Armadillo, and the assertion fails. generate_name independently selects a verb, color and animal; it does not promise uniqueness.
Expected behavior
The test should check the intended use of randomness without depending on two independent draws being different. Suggestion: control the choices or random state in the test and assert the expected sequence. No production uniqueness guarantee is needed for this test-only fix.
Activity