Skip to content

Commit 5d4bbdc

Browse files
committed
Use conditional doc type in testFrozenIndexAfterRestarted
1 parent ca15a3f commit 5d4bbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ public void testFrozenIndexAfterRestarted() throws Exception {
837837
int numDocs = randomIntBetween(10, 500);
838838
for (int i = 0; i < numDocs; i++) {
839839
int id = randomIntBetween(0, 100);
840-
final Request indexRequest = new Request("POST", "/" + index + "/" + "_doc/" + id);
840+
final Request indexRequest = new Request("POST", "/" + index + "/" + type + "/" + id);
841841
indexRequest.setJsonEntity(Strings.toString(JsonXContent.contentBuilder().startObject().field("f", "v").endObject()));
842842
assertOK(client().performRequest(indexRequest));
843843
if (rarely()) {

0 commit comments

Comments
 (0)