8000 Fix fetch mode failing test when preview lines are set to 0 by bjesus · Pull Request #389 · hyprlab/hylki · GitHub
[go: up one dir, main page]

Skip to content

Fix fetch mode failing test when preview lines are set to 0 - #389

Closed
bjesus wants to merge 1 commit into
hyprlab:mainfrom
bjesus:fix-fetch-mode-test
Closed

bjesus wants to merge 1 commit into
hyprlab:mainfrom
bjesus:fix-fetch-mode-test

Conversation

@bjesus
@bjesus bjesus commented Oct 9, 2026
Copy link
Copy Markdown
Contributor

worker::fetch_mode_tests::ladder_visits_every_way_of_asking_once was reading the local ~/.config/hylki/privacy.toml file, causing the test to fail if the user configured Hylki to show 0 preview lines.

This fix ensures inline_previews_wanted assumes previews are enabled under cfg!(test), so unit tests remain isolated from local user configurations without affecting production builds.

Avoids failing the fetch mode ladder test when the developer running
the test suite has `preview_lines = 0` configured in their local
~/.config/hylki/privacy.toml.
@hyprlab
8000
hyprlab commented Oct 10, 2026
Copy link
Copy Markdown
Owner

Thanks for this fix! It will go out in 1.44.0 beta later today

@bjesus
bjesus commented Oct 10, 2026
Copy link
Copy Markdown
Contributor Author

Great to hear, and thank you for Hylki! Finally an email client that both looks good and actually works for Linux.

hyprlab added a commit that referenced this pull request Oct 10, 2026
The ladder test read privacy.toml, so it failed for anyone who shows no preview lines.

Co-Authored-By: Yo'av Moshe <55081+bjesus@users.noreply.github.com>
@hyprlab hyprlab closed this Oct 10, 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.

2 participants

0