Prechádzať zdrojové kódy

Fix unit test build failure

We didn't catch the failure because we tested against the fork instead
of master. I think.
Nik Everett 9 rokov pred
rodič
commit
a182e356d3

+ 2 - 1
core/src/test/java/org/elasticsearch/action/DocWriteResponseTests.java

@@ -19,12 +19,13 @@
 
 package org.elasticsearch.action;
 
+import org.elasticsearch.action.DocWriteResponse.Operation;
 import org.elasticsearch.index.shard.ShardId;
 import org.elasticsearch.test.ESTestCase;
 
 public class DocWriteResponseTests extends ESTestCase {
     public void testGetLocation() {
-        DocWriteResponse response = new DocWriteResponse(new ShardId("index", "uuid", 0), "type", "id", 0) {
+        DocWriteResponse response = new DocWriteResponse(new ShardId("index", "uuid", 0), "type", "id", 0, Operation.CREATE) {
             // DocWriteResponse is abstract so we have to sneak a subclass in here to test it.
         };
         assertEquals("/index/type/id", response.getLocation(null));