From 9b091c05073a2b4acd097b12f04e3f427ccce9ed Mon Sep 17 00:00:00 2001 From: tpylak <tpylak> Date: Thu, 12 Jun 2008 08:15:27 +0000 Subject: [PATCH] minor: DMV remove a test of termination before copy has started (this functionality has been removed) SVN: 6566 --- .../filesystem/remote/rsync/RsyncCopierTest.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/datamover/sourceTest/java/ch/systemsx/cisd/datamover/filesystem/remote/rsync/RsyncCopierTest.java b/datamover/sourceTest/java/ch/systemsx/cisd/datamover/filesystem/remote/rsync/RsyncCopierTest.java index fb763944cc1..1a525ccd498 100644 --- a/datamover/sourceTest/java/ch/systemsx/cisd/datamover/filesystem/remote/rsync/RsyncCopierTest.java +++ b/datamover/sourceTest/java/ch/systemsx/cisd/datamover/filesystem/remote/rsync/RsyncCopierTest.java @@ -224,19 +224,6 @@ public final class RsyncCopierTest assertEquals(RsyncCopier.TERMINATED_STATUS, status); } - @Test(groups = - { "requires_unix" }) - public void testRsyncTerminationBeforeCopy() throws IOException, InterruptedException - { - final File sleepyRsyncBinary = createSleepProcess(100); - final RsyncCopier copier = new RsyncCopier(sleepyRsyncBinary, null, false, false); - // copy monitor can call this method before the copy starts - boolean wasRunning = copier.terminate(); - assertEquals(false, wasRunning); - final Status status = copier.copy(sourceFile, destinationDirectory); - assertEquals(RsyncCopier.TERMINATED_STATUS, status); - } - private File createSleepProcess(int seconds) throws IOException, InterruptedException { return createRsync("2.6.9", "/bin/sleep " + seconds); -- GitLab