From 17937537f811f58e823ac714d21959027705dca9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 27 Feb 2023 22:58:03 +0100 Subject: [PATCH] Ignored URLs don't lead to failing exit code --- lychee-bin/src/stats.rs | 2 +- lychee-bin/tests/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lychee-bin/src/stats.rs b/lychee-bin/src/stats.rs index 91e623e..2a91b52 100644 --- a/lychee-bin/src/stats.rs +++ b/lychee-bin/src/stats.rs @@ -75,7 +75,7 @@ impl ResponseStats { #[inline] pub(crate) const fn is_success(&self) -> bool { - self.total == self.successful + self.excludes + self.total == self.successful + self.excludes + self.unsupported } #[inline] diff --git a/lychee-bin/tests/cli.rs b/lychee-bin/tests/cli.rs index dedcff9..8814a45 100644 --- a/lychee-bin/tests/cli.rs +++ b/lychee-bin/tests/cli.rs @@ -212,7 +212,7 @@ mod cli { .env_clear() .assert() .success() - .stdout(contains("2 Total")) + .stdout(contains("3 Total")) .stdout(contains("1 OK")) .stdout(contains("1 Excluded")); }