summaryrefslogtreecommitdiffstats
path: root/tests/pipelinetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-10 14:13:27 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-10 14:13:27 +0200
commitd6e6cab8b284167a9c8fd30ae669354d8315b3aa (patch)
tree0286d7657efab3d7a904a35d000bfc7fcbb4c75b /tests/pipelinetest.cpp
parent6f1d3437b3bdd3ccde1243ceddf19f0c0fb5afda (diff)
downloadsink-d6e6cab8b284167a9c8fd30ae669354d8315b3aa.tar.gz
sink-d6e6cab8b284167a9c8fd30ae669354d8315b3aa.zip
Create a new revision for removals as well.
So we can replay the change.
Diffstat (limited to 'tests/pipelinetest.cpp')
-rw-r--r--tests/pipelinetest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pipelinetest.cpp b/tests/pipelinetest.cpp
index 5dede64..4cff511 100644
--- a/tests/pipelinetest.cpp
+++ b/tests/pipelinetest.cpp
@@ -246,6 +246,9 @@ private Q_SLOTS:
246 pipeline.deletedEntity(deleteCommand.constData(), deleteCommand.size()); 246 pipeline.deletedEntity(deleteCommand.constData(), deleteCommand.size());
247 pipeline.commit(); 247 pipeline.commit();
248 248
249 //We have a new revision that indicates the deletion
250 QCOMPARE(getKeys("org.kde.pipelinetest.instance1", "event.main").size(), 2);
251
249 //Cleanup old revisions 252 //Cleanup old revisions
250 pipeline.startTransaction(); 253 pipeline.startTransaction();
251 pipeline.cleanupRevision(2); 254 pipeline.cleanupRevision(2);