Skip to content

Commit 11b5595

Browse files
committed
Fix test for windows
1 parent 9b353f6 commit 11b5595

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,11 @@ public void testFormatFilesEntitlement() {
353353
)
354354
);
355355
Set<String> actual = PolicyUtils.getEntitlementsDescriptions(policy);
356-
assertThat(actual, containsInAnyOrder("files [READ_WRITE] " + pathAB, "files [READ] <DATA>/c/d", "files [READ] <DATA>/<setting>"));
356+
var pathABString = pathAB.toAbsolutePath().toString();
357+
assertThat(
358+
actual,
359+
containsInAnyOrder("files [READ_WRITE] " + pathABString, "files [READ] <DATA>/c/d", "files [READ] <DATA>/<setting>")
360+
);
357361
}
358362

359363
/** Test that we can format some simple files entitlement properly */

0 commit comments

Comments
 (0)