summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/test/java/com/yahoo/vespa/http/client/SyncFeedClientTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/SyncFeedClientTest.java b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/SyncFeedClientTest.java
index c7787b55049..fce356e6677 100644
--- a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/SyncFeedClientTest.java
+++ b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/SyncFeedClientTest.java
@@ -65,15 +65,23 @@ public class SyncFeedClientTest {
" \"title\": \"Title 3\"" +
" }" +
"}"));
+ operations.add(new SyncOperation("id::test::3", // Another operation for the same document
+ "{" +
+ " \"put\": \"id::test::3\"," +
+ " \"fields\": {" +
+ " \"title\": \"Title 4\"" +
+ " }" +
+ "}"));
SyncResult result = feedClient.stream(operations);
assertTrue(result.isSuccess());
- assertEquals(3, result.results().size());
+ assertEquals(4, result.results().size());
assertNull(result.exception());
assertEquals("id::test::1", result.results().get(0).getDocumentId());
assertEquals("id::test::2", result.results().get(1).getDocumentId());
assertEquals("id::test::3", result.results().get(2).getDocumentId());
+ assertEquals("id::test::3", result.results().get(3).getDocumentId());
}
}