Skip to content

Commit

Permalink
unit test: fix NPE in NearlineStorageHandler test introduced by commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryLitvintsev committed Mar 13, 2023
1 parent 5cb806a commit ecc1b2b
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -24,6 +24,7 @@
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import org.dcache.cells.CellStub;
Expand Down Expand Up @@ -78,6 +79,8 @@ public void setUp() throws Exception {
nsh.setPnfsHandler(pnfs);
nsh.setFileStore(fileStore);
nsh.setChecksumModule(csm);
nsh.setStickyOnStageDuration(5);
nsh.setStickyOnStageDurationUnit(TimeUnit.MINUTES);

hsmMigrationRequestCallack = mock(CompletionHandler.class);
hsmRemoveRequestCallack = mock(CompletionHandler.class);
Expand Down Expand Up @@ -461,4 +464,4 @@ private Collection<NearlineRequest> givenAllRemovesActive() {
requests.forEach(r -> r.activate());
return requests;
}
}
}

0 comments on commit ecc1b2b

Please sign in to comment.