Skip to content

Commit eee1f34

Browse files
Update test/external-modules/multi-project/src/javaRestTest/java/org/elasticsearch/action/admin/indices/stats/IndicesStatsMultiProjectIT.java
Co-authored-by: Niels Bauman <[email protected]>
1 parent beb2c48 commit eee1f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/external-modules/multi-project/src/javaRestTest/java/org/elasticsearch/action/admin/indices/stats/IndicesStatsMultiProjectIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public void testIndicesStats() throws IOException {
7171
int numDocsDefaultAll = createPopulatedIndex("default", "my-index-all-projects");
7272

7373
// Check indices stats for project 1.
74-
Map<String, Object> statsForProject1 = getAsOrderedMapInProject("/_stats", "project-1");
75-
assertThat(ObjectPath.evaluate(statsForProject1, "_all.total.docs.count"), equalTo(numDocs1Only + numDocs1Of1And2 + numDocs1All));
74+
ObjectPath statsForProject1 = getAsObjectPathInProject("/_stats", "project-1");
75+
assertThat(statsForProject1.evaluate("_all.total.docs.count"), equalTo(numDocs1Only + numDocs1Of1And2 + numDocs1All));
7676
assertThat(
7777
ObjectPath.<Map<String, Object>>evaluate(statsForProject1, "indices").keySet(),
7878
containsInAnyOrder("my-index-project-1-only", "my-index-projects-1-and-2", "my-index-all-projects")

0 commit comments

Comments
 (0)