Skip to content

Comments

test: fail fast when CHATMAIL_DOMAIN is unset#7874

Open
link2xt wants to merge 1 commit intomainfrom
push-zqtqurwyrzmz
Open

test: fail fast when CHATMAIL_DOMAIN is unset#7874
link2xt wants to merge 1 commit intomainfrom
push-zqtqurwyrzmz

Conversation

@link2xt
Copy link
Collaborator

@link2xt link2xt commented Feb 20, 2026

This code does not expect the variable to be unset, so use indexing to fail with KeyError instead.
Otherwise getenv() returns None which is then converted to "none" string by formatting and the test only fails because of connection attempts to "none" domain.

This code does not expect the variable to be unset,
so use indexing to fail with KeyError instead.
Otherwise getenv() returns None which is then converted to "none" string by formatting
and the test only fails because of connection attempts to "none" domain.
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