diff options
author | Thayne McCombs <astrothayne@gmail.com> | 2022-12-01 21:59:53 -0700 |
---|---|---|
committer | Thayne McCombs <astrothayne@gmail.com> | 2022-12-01 22:02:19 -0700 |
commit | 0a575763a166aea92da9b86ace7a3010b08177ff (patch) | |
tree | 9d992c0b4762a3eeb7bffdb0cccef0c36e559954 | |
parent | d991beb942281f96f96b02b53af4084083023417 (diff) |
Change full path tests to be more resilient
Use patterns that won't conflict with randomly generated portion of
temporary directory
Fixes: #1181
-rw-r--r-- | tests/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 3de4559..0c7c3d7 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -263,12 +263,12 @@ fn test_and_plus_full_path() { let te = TestEnv::new(DEFAULT_DIRS, AND_EXTRA_FILES); te.assert_output( - &["three", "--full-path", "--and", "foo", "--and", "dir"], + &["three", "--full-path", "--and", "_foo", "--and", "/dir"], "one/two/three/directory_foo/", ); te.assert_output( - &["three", "--full-path", "--and", "two", "--and", "dir"], + &["three", "--full-path", "--and", "/two", "--and", "/dir"], "one/two/three/directory_foo/", ); } |