File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
jfuse-tests/src/test/java/org/cryptomator/jfuse/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3636import java .time .Duration ;
3737import java .util .ArrayList ;
3838import java .util .List ;
39- import java .util .Set ;
4039import java .util .concurrent .TimeUnit ;
4140
4241@ EnabledIf ("hasSupportedImplementation" )
@@ -227,8 +226,9 @@ public void setup() throws IOException {
227226 public void testSetxattr (String attrName ) {
228227 var attrView = Files .getFileAttributeView (file , UserDefinedFileAttributeView .class );
229228 var attrValue = StandardCharsets .UTF_8 .encode (attrName );
230-
231- Assertions .assertDoesNotThrow (() -> attrView .write (attrName , attrValue ));
229+ var expectedWrittenBytes = attrValue .limit ();
230+ int bytesWritten = Assertions .assertDoesNotThrow (() -> attrView .write (attrName , attrValue ));
231+ Assertions .assertEquals (expectedWrittenBytes , bytesWritten , "The extended attribute %s was not completely written." .formatted (attrName ));
232232 }
233233
234234 @ Order (2 )
You can’t perform that action at this time.
0 commit comments