Mercurial > hg > orthanc
diff UnitTestsSources/ServerIndexTests.cpp @ 2665:389d050a2e66 jobs
fix deadlock, speed up unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Jun 2018 13:51:31 +0200 |
parents | 4dcafa8d6633 |
children | 06c0a6b8a871 |
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp Thu Jun 07 21:37:40 2018 +0200 +++ b/UnitTestsSources/ServerIndexTests.cpp Fri Jun 08 13:51:31 2018 +0200 @@ -675,7 +675,7 @@ FilesystemStorage storage(path); DatabaseWrapper db; // The SQLite DB is in memory db.Open(); - ServerContext context(db, storage); + ServerContext context(db, storage, true /* running unit tests */); ServerIndex& index = context.GetIndex(); ASSERT_EQ(1u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); @@ -773,7 +773,7 @@ FilesystemStorage storage(path); DatabaseWrapper db; // The SQLite DB is in memory db.Open(); - ServerContext context(db, storage); + ServerContext context(db, storage, true /* running unit tests */); ServerIndex& index = context.GetIndex(); index.SetMaximumStorageSize(10);