Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxpi committed Jul 11, 2023
1 parent 9f7ae9e commit 6fcf79f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.opensearch.common.blobstore.BlobPath;
import org.opensearch.common.blobstore.BlobStore;
import org.opensearch.common.blobstore.support.PlainBlobMetadata;
import org.opensearch.index.Index;
import org.opensearch.index.shard.ShardId;
import org.opensearch.index.translog.Translog;
import org.opensearch.index.translog.transfer.FileSnapshot.CheckpointFileSnapshot;
Expand Down Expand Up @@ -65,6 +66,7 @@ public void setUp() throws Exception {
primaryTerm = randomNonNegativeLong();
generation = randomNonNegativeLong();
shardId = mock(ShardId.class);
when(shardId.getIndex()).thenReturn(new Index("index", "indexUUid"));
minTranslogGeneration = randomLongBetween(0, generation);
remoteBaseTransferPath = new BlobPath().add("base_path");
transferService = mock(TransferService.class);
Expand Down

0 comments on commit 6fcf79f

Please sign in to comment.