From 8d335d7e907a7f5c7b96d1e77d20486706e9ac83 Mon Sep 17 00:00:00 2001 From: epi Date: Fri, 9 Oct 2020 15:34:33 -0500 Subject: [PATCH] added two tests to cover static wildcards --- tests/test_heuristics.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_heuristics.rs b/tests/test_heuristics.rs index 9f6a13b..df753cd 100644 --- a/tests/test_heuristics.rs +++ b/tests/test_heuristics.rs @@ -245,7 +245,9 @@ fn heuristics_wildcard_test_with_two_static_wildcards() -> Result<(), Box Result<(), Box Result<(), Box> { +fn heuristics_wildcard_test_with_two_static_wildcards_with_quiet_enabled( +) -> Result<(), Box> { let srv = MockServer::start(); let (tmp_dir, file) = setup_tmp_directory(&["LICENSE".to_string()], "wordlist")?; @@ -287,7 +290,6 @@ fn heuristics_wildcard_test_with_two_static_wildcards_with_quiet_enabled() -> Re cmd.assert().success().stdout(predicate::str::is_empty()); - assert_eq!(mock.times_called(), 1); assert_eq!(mock2.times_called(), 1); Ok(())