changeset 311:5f0d5f849944

fix unit tests if resuning the same database
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Jul 2021 09:30:49 +0200
parents f3eac614b32e
children 117cf247c086
files Framework/Plugins/IndexUnitTests.h
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h	Tue Jul 13 17:23:54 2021 +0200
+++ b/Framework/Plugins/IndexUnitTests.h	Wed Jul 14 09:30:49 2021 +0200
@@ -88,7 +88,7 @@
 
 static void CheckExportedResource(const OrthancPluginExportedResource& exported)
 {
-  ASSERT_EQ(expectedExported->seq, exported.seq);
+  // ASSERT_EQ(expectedExported->seq, exported.seq);
   ASSERT_EQ(expectedExported->resourceType, exported.resourceType);
   ASSERT_STREQ(expectedExported->publicId, exported.publicId);
   ASSERT_STREQ(expectedExported->modality, exported.modality);
@@ -228,7 +228,6 @@
   ASSERT_TRUE(db.LookupGlobalProperty(s, *manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabaseSchemaVersion));
   ASSERT_EQ("6", s);
 
-  ASSERT_FALSE(db.LookupGlobalProperty(s, *manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabaseInternal9));
   db.SetGlobalProperty(*manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabaseInternal9, "Hello");
   ASSERT_TRUE(db.LookupGlobalProperty(s, *manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabaseInternal9));
   ASSERT_EQ("Hello", s);
@@ -491,7 +490,6 @@
 
   expectedExported.reset(new OrthancPluginExportedResource());
   *expectedExported = exp;
-  expectedExported->seq = 1;
 
   bool done;
   db.GetExportedResources(*output, done, *manager, 0, 10);