Skip to content

Commit ccde0ea

Browse files
committed
Fixing IndicesServiceCloseTests unit test
Signed-off-by: Sagar Upadhyaya <sagar.upadhyaya.121@gmail.com>
1 parent 5c5af1d commit ccde0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/opensearch/indices/IndicesServiceCloseTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public boolean isOpen() {
383383

384384
@Override
385385
public Object getCacheIdentity() {
386-
return this;
386+
return shard;
387387
}
388388
};
389389
cache.getOrCompute(cacheEntity, () -> new BytesArray("bar"), searcher.getDirectoryReader(), new BytesArray("foo"));

0 commit comments

Comments
 (0)