Mercurial > hg > orthanc-databases
changeset 26:19eec364236b
fix unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 12 Jul 2018 21:26:08 +0200 |
parents | 69a94267cdea |
children | 173176f8cef2 |
files | Framework/Plugins/IndexUnitTests.h |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h Thu Jul 12 21:01:37 2018 +0200 +++ b/Framework/Plugins/IndexUnitTests.h Thu Jul 12 21:26:08 2018 +0200 @@ -144,6 +144,8 @@ db.RegisterOutput(new OrthancPlugins::DatabaseBackendOutput(&context, NULL)); db.Open(); + db.StartTransaction(); + std::string s; ASSERT_TRUE(db.LookupGlobalProperty(s, Orthanc::GlobalProperty_DatabaseSchemaVersion)); @@ -413,4 +415,6 @@ db.DeleteResource(p2); ASSERT_TRUE(db.SelectPatientToRecycle(r, p3)); ASSERT_EQ(p1, r); + + db.CommitTransaction(); }