Skip to content

Commit eadc32d

Browse files
committed
Add UTs
Signed-off-by: Ashish Singh <[email protected]>
1 parent e273223 commit eadc32d

File tree

2 files changed

+441
-1
lines changed

2 files changed

+441
-1
lines changed

server/src/main/java/org/opensearch/snapshots/SnapshotsService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,8 @@ public void clusterStateProcessed(String source, ClusterState oldState, ClusterS
13271327

13281328
private final Set<RepositoryShardId> currentlyCloning = Collections.synchronizedSet(new HashSet<>());
13291329

1330-
private void runReadyClone(
1330+
// Made to package private to be able to test the method in UTs
1331+
void runReadyClone(
13311332
Snapshot target,
13321333
SnapshotId sourceSnapshot,
13331334
ShardSnapshotStatus shardStatusBefore,

0 commit comments

Comments
 (0)