Skip to content

Commit e643a54

Browse files
committed
Improve xattr test by checking written bytes
1 parent 97b6429 commit e643a54

File tree

1 file changed

+3
-0
lines changed
  • jfuse-tests/src/test/java/org/cryptomator/jfuse/tests

1 file changed

+3
-0
lines changed

jfuse-tests/src/test/java/org/cryptomator/jfuse/tests/MirrorIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ public void testSetxattr(String attrName) {
237237
var attrValue = StandardCharsets.UTF_8.encode(attrName);
238238

239239
Assertions.assertDoesNotThrow(() -> attrView.write(attrName, attrValue));
240+
var expectedWrittenBytes = attrValue.limit();
241+
int bytesWritten = Assertions.assertDoesNotThrow(() -> attrView.write(attrName, attrValue));
242+
Assertions.assertEquals(expectedWrittenBytes, bytesWritten, "The extended attribute %s was not completely written.".formatted(attrName));
240243
}
241244

242245
@Order(2)

0 commit comments

Comments
 (0)