# HG changeset patch # User Sebastien Jodogne # Date 1392291999 -3600 # Node ID 2d829ea1db96a968e25638cbf003a2dc18804403 # Parent a9cff2c077d48b0abd368350fd5a347182420494 fix diff -r a9cff2c077d4 -r 2d829ea1db96 UnitTestsSources/ServerIndex.cpp --- a/UnitTestsSources/ServerIndex.cpp Thu Feb 13 11:54:00 2014 +0100 +++ b/UnitTestsSources/ServerIndex.cpp Thu Feb 13 12:46:39 2014 +0100 @@ -520,6 +520,8 @@ ServerContext context(path, ":memory:"); ServerIndex& index = context.GetIndex(); + index.SetMaximumStorageSize(10); + Json::Value tmp; index.ComputeStatistics(tmp); ASSERT_EQ(0, tmp["PatientCount"].asInt()); @@ -527,9 +529,9 @@ ServerIndex::Attachments attachments; DicomMap instance; - m.SetValue(DICOM_TAG_PATIENT_ID, "patient1"); - m.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "study1"); - m.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "series1"); - m.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance1"); + instance.SetValue(DICOM_TAG_PATIENT_ID, "patient1"); + instance.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "study1"); + instance.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "series1"); + instance.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance1"); ASSERT_EQ(StoreStatus_Success, index.Store(instance, attachments, "")); }