From a95264b5273748330c3126632277fd7a0db8ec91 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 23 Aug 2024 00:23:04 +0200 Subject: local: Simply PathFile.write Don't fiddle around with temp files and such. This needs to be handled on a higher level. Otherwise, how do you know if the temp file should be replaced or not when close is called? --- libs/local/src/test/java/org/the_jk/cleversync/local/LocalTreeTest.kt | 1 - 1 file changed, 1 deletion(-) (limited to 'libs/local/src/test/java/org') diff --git a/libs/local/src/test/java/org/the_jk/cleversync/local/LocalTreeTest.kt b/libs/local/src/test/java/org/the_jk/cleversync/local/LocalTreeTest.kt index 21002e3..a7d0afa 100644 --- a/libs/local/src/test/java/org/the_jk/cleversync/local/LocalTreeTest.kt +++ b/libs/local/src/test/java/org/the_jk/cleversync/local/LocalTreeTest.kt @@ -98,7 +98,6 @@ class LocalTreeTest { os.write(127) os.write(byteArrayOf(1)) os.write(byteArrayOf(2), 0, 0) - assertThat(foo.size).isEqualTo(4.toULong()) } assertThat(foo.size).isEqualTo(2.toULong()) assertThat(tree.list().files).hasSize(1) -- cgit v1.2.3-70-g09d2