瀏覽代碼

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 年之前
父節點
當前提交
a182e356d3
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/src/test/java/org/elasticsearch/action/DocWriteResponseTests.java

+ 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));