aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_key_server_sync/test/KeyServerBatchLogicTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_key_server_sync/test/KeyServerBatchLogicTest.cpp')
-rw-r--r--src/m_key_server_sync/test/KeyServerBatchLogicTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/m_key_server_sync/test/KeyServerBatchLogicTest.cpp b/src/m_key_server_sync/test/KeyServerBatchLogicTest.cpp
index 9359410..bdb461a 100644
--- a/src/m_key_server_sync/test/KeyServerBatchLogicTest.cpp
+++ b/src/m_key_server_sync/test/KeyServerBatchLogicTest.cpp
@@ -98,6 +98,12 @@ TEST(KeyServerBatchLogicTest, SummariesCountAndListFailures) {
EXPECT_TRUE(published.contains("keys.openpgp.org"));
}
+TEST(KeyServerBatchLogicTest, AnInterruptedBatchSaysHowFarItGot) {
+ const auto text = KeyServerBatchLogic::InterruptedSummary(2, 5);
+ EXPECT_TRUE(text.contains("2 of 5"));
+ EXPECT_TRUE(text.contains("Nothing fetched was imported"));
+}
+
// "The server does not have this key" is an answer, told apart from a real
// failure by the caller, and never shown in the transport's own wording.
TEST(KeyServerBatchLogicTest, NotFoundIsItsOwnPlainAnswer) {