diff OrthancServer/UnitTestsSources/ServerJobsTests.cpp @ 5401:fc604681e6be

When exporting a study archive, make sure to use the PatientName from the study and not from the patient in case of PatientID collision
author Alain Mazy <am@osimis.io>
date Mon, 16 Oct 2023 17:30:40 +0200
parents 5b2a5cc64cb1
children 48b8dae6dc77
line wrap: on
line diff
--- a/OrthancServer/UnitTestsSources/ServerJobsTests.cpp	Mon Oct 16 11:14:11 2023 +0200
+++ b/OrthancServer/UnitTestsSources/ServerJobsTests.cpp	Mon Oct 16 17:30:40 2023 +0200
@@ -750,7 +750,7 @@
   // ArchiveJob
 
   {
-    ArchiveJob job(GetContext(), false, false);
+    ArchiveJob job(GetContext(), false, false, ResourceType_Patient);
     ASSERT_FALSE(job.Serialize(s));  // Cannot serialize this
   }