diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java index d4533e0af54cbc3b288adf7f4441faf663b13782..6fd0dfc0424b8525e581ef650034d5a1dfa58370 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java @@ -373,7 +373,7 @@ public final class RsyncCopierTest final Status status = copier.copy(sourceDirectory, destinationDirectory); assertEquals(Status.OK, status); final String expectedRsyncCmdLine = - String.format("--archive --delete --inplace --append %s %s/\n", + String.format("--archive --delete-before --inplace --append %s %s/\n", sourceDirectory.getAbsolutePath(), destinationDirectory.getAbsolutePath()); final String observedRsyncCmdLine = FileUtilities.loadToString(parametersLogFile); assertEquals(expectedRsyncCmdLine, observedRsyncCmdLine); @@ -391,7 +391,7 @@ public final class RsyncCopierTest final Status status = copier.copyContent(sourceDirectory, destinationDirectory); assertEquals(Status.OK, status); final String expectedRsyncCmdLine = - String.format("--archive --delete --inplace --append %s/ %s/\n", + String.format("--archive --delete-before --inplace --append %s/ %s/\n", sourceDirectory.getAbsolutePath(), destinationDirectory.getAbsolutePath()); final String observedRsyncCmdLine = FileUtilities.loadToString(parametersLogFile); assertEquals(expectedRsyncCmdLine, observedRsyncCmdLine);