summaryrefslogtreecommitdiff
path: root/cli/tests/integration/watcher_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-06-21 15:25:07 -0400
committerGitHub <noreply@github.com>2022-06-21 15:25:07 -0400
commit3455f16079c2ca676e092d2123b8895e68e1a3ee (patch)
treecccbca198d8f4e375b6e90b6415acffad532589a /cli/tests/integration/watcher_tests.rs
parent7ad0d092281c040c5c5be4ba0415f3e7551201de (diff)
chore(test_util): add new string assertion macros (#14928)
Diffstat (limited to 'cli/tests/integration/watcher_tests.rs')
-rw-r--r--cli/tests/integration/watcher_tests.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/cli/tests/integration/watcher_tests.rs b/cli/tests/integration/watcher_tests.rs
index 046dcec07..1e79a219d 100644
--- a/cli/tests/integration/watcher_tests.rs
+++ b/cli/tests/integration/watcher_tests.rs
@@ -4,19 +4,11 @@ use flaky_test::flaky_test;
use std::fs::write;
use std::io::BufRead;
use test_util as util;
+use test_util::assert_contains;
use test_util::TempDir;
const CLEAR_SCREEN: &str = r#"[2J"#;
-macro_rules! assert_contains {
- ($string:expr, $($test:expr),+) => {
- let string = $string; // This might be a function call or something
- if !($(string.contains($test))||+) {
- panic!("{:?} does not contain any of {:?}", string, [$($test),+]);
- }
- }
-}
-
// Helper function to skip watcher output that contains "Restarting"
// phrase.
fn skip_restarting_line(