Skip to content

Commit 03774c7

Browse files
authored
Remove assertion about theoretical path separators (#122069) (#122090)
The only real path separators are either forward or back slash. Trying to use something else like newline fails to even parse as a path on windows. This commit removes testing of other separators. closes #121872
1 parent e1f8b51 commit 03774c7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libs/entitlement/src/test/java/org/elasticsearch/entitlement/runtime/policy/FileAccessTreeTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ public void testForwardSlashes() {
102102
// Forward slashes also work
103103
assertThat(tree.canRead(path("a/b")), is(true));
104104
assertThat(tree.canRead(path("m/n")), is(true));
105-
106-
// In case the native separator is a backslash, don't treat that as an escape
107-
assertThat(tree.canRead(path("m\n")), is(false));
108105
}
109106

110107
FilesEntitlement entitlement(String... values) {

0 commit comments

Comments
 (0)