Skip to content

Commit a182e35

Browse files
committed
Fix unit test build failure
We didn't catch the failure because we tested against the fork instead of master. I think.
1 parent 8a51cfb commit a182e35

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/test/java/org/elasticsearch/action/DocWriteResponseTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919

2020
package org.elasticsearch.action;
2121

22+
import org.elasticsearch.action.DocWriteResponse.Operation;
2223
import org.elasticsearch.index.shard.ShardId;
2324
import org.elasticsearch.test.ESTestCase;
2425

2526
public class DocWriteResponseTests extends ESTestCase {
2627
public void testGetLocation() {
27-
DocWriteResponse response = new DocWriteResponse(new ShardId("index", "uuid", 0), "type", "id", 0) {
28+
DocWriteResponse response = new DocWriteResponse(new ShardId("index", "uuid", 0), "type", "id", 0, Operation.CREATE) {
2829
// DocWriteResponse is abstract so we have to sneak a subclass in here to test it.
2930
};
3031
assertEquals("/index/type/id", response.getLocation(null));

0 commit comments

Comments
 (0)