summaryrefslogtreecommitdiff
path: root/cli/tests/integration/watcher_tests.rs
diff options
context:
space:
mode:
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(