summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-08-21 11:59:54 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-08-21 20:27:38 +0000
commit661856ff8cc4e1e1a454bdd34b36463a4c42d20d (patch)
tree106f2c88ae37222a0320274959dcaa15cb14ee1a /searchcore
parente931d5321e5717a2d6ecca32a0b8880e0e29caa3 (diff)
Do not generate old formats, not even in tests.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp b/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp
index 5a3ed4b7274..20cfb7c6dcb 100644
--- a/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp
+++ b/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp
@@ -264,26 +264,6 @@ TEST_F("require that we can serialize and deserialize update operations", Fixtur
}
}
-TEST_F("require that we can deserialize old update operations", Fixture)
-{
- vespalib::nbostream stream;
- BucketId bucket(toBucket(docId.getGlobalId()));
- auto upd(f.makeUpdate());
- {
- UpdateOperation op(bucket, Timestamp(10), upd);
- op.serializeDocumentOperationOnly(stream);
- document::VespaDocumentSerializer serializer(stream);
- serializer.write42(*op.getUpdate());
- }
- {
- UpdateOperation op(FeedOperation::UPDATE_42);
- op.deserialize(stream, *f._repo);
- EXPECT_EQUAL(*upd, *op.getUpdate());
- EXPECT_EQUAL(bucket, op.getBucketId());
- EXPECT_EQUAL(10u, op.getTimestamp().getValue());
- }
-}
-
TEST_F("require that we can serialize and deserialize put operations", Fixture)
{
vespalib::nbostream stream;