Skip to content

Fix provider descend tests to be independent of user preferences#699

Merged
aviatesk merged 1 commit into
masterfrom
avi/robust-test
Mar 20, 2026
Merged

Fix provider descend tests to be independent of user preferences#699
aviatesk merged 1 commit into
masterfrom
avi/robust-test

Conversation

@aviatesk
Copy link
Copy Markdown
Member

The test_descend_for_provider function relied on the global Cthulhu.CONFIG, which is populated from LocalPreferences.toml via read_config!() at init. User preferences (e.g. remarks=true) leaked into the test environment through LOAD_PATH, causing the expected warning log pattern to not match.

Pass a splatted default CthulhuConfig() to descend() so the test always starts with known default state regardless of user preferences.

The `test_descend_for_provider` function relied on the global
`Cthulhu.CONFIG`, which is populated from `LocalPreferences.toml` via
`read_config!()` at init. User preferences (e.g. `remarks=true`) leaked
into the test environment through `LOAD_PATH`, causing the expected
warning log pattern to not match.

Pass a splatted default `CthulhuConfig()` to `descend()` so the test
always starts with known default state regardless of user preferences.
@aviatesk aviatesk merged commit 672deb8 into master Mar 20, 2026
12 of 13 checks passed
@aviatesk aviatesk deleted the avi/robust-test branch March 20, 2026 09:59
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