# HG changeset patch # User Sebastien Jodogne # Date 1626247849 -7200 # Node ID 5f0d5f8499447af32e3bbfc45dbd8a86688377ba # Parent f3eac614b32e71b72163cbdbf9cdb7846ef1a280 fix unit tests if resuning the same database diff -r f3eac614b32e -r 5f0d5f849944 Framework/Plugins/IndexUnitTests.h --- 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);