Skip to content

Commit 580c4a3

Browse files
committed
fix test
1 parent 2b9570a commit 580c4a3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,7 @@ public void testInvalidExclusiveAccess() {
243243
IllegalArgumentException.class,
244244
() -> accessTree(entitlement("foo/bar", "read"), exclusivePaths("test-component", "diff-module", "foo"))
245245
);
246-
assertThat(
247-
iae.getMessage(),
248-
is(
249-
"[test-component] [test-module] cannot use exclusive path "
250-
+ "[/home/jdconrad/Code/elastic/elasticsearch/libs/entitlement/build/testrun/test/temp/"
251-
+ "org.elasticsearch.entitlement.runtime.policy.FileAccessTreeTests_F47C6163CA22BE09-001/tempDir-002/foo]"
252-
)
253-
);
246+
assertThat(iae.getMessage(), is("[test-component] [test-module] cannot use exclusive path [" + path("foo") + "]"));
254247
}
255248

256249
FileAccessTree accessTree(FilesEntitlement entitlement, List<ExclusivePath> exclusivePaths) {

0 commit comments

Comments
 (0)