Fix test_exclude_example_domains (#1712)

* Configure test with the right feature flag

* Remove test exclusion, because test is now properly configured
This commit is contained in:
Thomas Zahner 2025-05-23 14:54:46 +02:00 committed by GitHub
parent 35610764a1
commit da166ce3c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -45,8 +45,8 @@ lint: ## Run linter
.PHONY: test
test: ## Run tests
cargo nextest run --all-targets --all-features --filter-expr '!test(test_exclude_example_domains)'
cargo nextest run --filter-expr 'test(test_exclude_example_domains)'
cargo nextest run --all-targets --all-features
cargo nextest run
cargo test --doc
.PHONY: doc

View file

@ -26,6 +26,7 @@ mod cli {
}
#[test]
#[cfg(not(feature = "check_example_domains"))]
fn test_exclude_example_domains() -> Result<()> {
let mut cmd = main_command();
let input = fixtures_path().join("TEST_EXAMPLE_DOMAINS.md");