diff Framework/Plugins/IndexUnitTests.h @ 314:64763998cdff

clarification in IndexBackend::SignalDeletedFiles()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Jul 2021 17:17:23 +0200
parents 8bb2eb006e21
children 11641063ddb2
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h	Wed Jul 14 15:56:37 2021 +0200
+++ b/Framework/Plugins/IndexUnitTests.h	Wed Jul 14 17:17:23 2021 +0200
@@ -675,6 +675,8 @@
       a.compressedSize = 4242;
       a.compressedHash = "md5";
       db.AddAttachment(*manager, resources[attachmentLevel], a, 42);
+
+      ASSERT_THROW(db.AddAttachment(*manager, resources[attachmentLevel], a, 43), Orthanc::OrthancException);
       
       deletedAttachments.clear();
       a.uuid = "attachment2";