Skip to content

Commit

Permalink
resilience: remove reference to PoolCheckMessage in unit test
Browse files Browse the repository at this point in the history
Motivation:
the PoolCheckMessage is never sent by resilience manager or
corresponding tests.

Modification:
remove dead code.

Result:
less dead code.

Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: no
  • Loading branch information
kofemann committed Jul 22, 2019
1 parent ea97bbf commit 907eec6
Showing 1 changed file with 1 addition and 10 deletions.
Expand Up @@ -68,28 +68,20 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING

import diskCacheV111.util.CacheException;
import diskCacheV111.util.PnfsId;
import diskCacheV111.vehicles.PoolCheckFileMessage;

import org.dcache.resilience.TestBase;
import org.dcache.resilience.TestMessageProcessor;
import org.dcache.resilience.TestSynchronousExecutor.Mode;
import org.dcache.resilience.handlers.PoolTaskCompletionHandler;
import org.dcache.vehicles.FileAttributes;

import static org.junit.Assert.*;

public final class FileOperationMapTest extends TestBase
implements TestMessageProcessor<PoolCheckFileMessage> {
public final class FileOperationMapTest extends TestBase {
PnfsId pnfsId;
FileAttributes attributes;
FileOperation operation;
File checkpoint = new File("checkpoint");

@Override
public void processMessage(PoolCheckFileMessage message) {
message.setHave(true);
}

@Before
public void setUp() throws CacheException, InterruptedException {
setUpBase();
Expand All @@ -98,7 +90,6 @@ public void setUp() throws CacheException, InterruptedException {
createFileOperationHandler();
createInaccessibleFileHandler();
createFileOperationMap();
setPoolMessageProcessor(this);
poolTaskCompletionHandler = new PoolTaskCompletionHandler();
poolTaskCompletionHandler.setMap(poolOperationMap);
wireFileOperationMap();
Expand Down

0 comments on commit 907eec6

Please sign in to comment.