diff UnitTestsSources/ServerIndexTests.cpp @ 2815:925d8dc03a23

unserialization of jobs from plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Sep 2018 16:34:21 +0200
parents 06c0a6b8a871
children c277e0421200
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp	Fri Sep 07 10:09:17 2018 +0200
+++ b/UnitTestsSources/ServerIndexTests.cpp	Tue Sep 11 16:34:21 2018 +0200
@@ -675,8 +675,9 @@
   FilesystemStorage storage(path);
   DatabaseWrapper db;   // The SQLite DB is in memory
   db.Open();
-  ServerContext context(db, storage, true /* running unit tests */,
-                        false /* don't reload jobs */);
+  ServerContext context(db, storage, true /* running unit tests */);
+  context.SetupJobsEngine(true, false);
+
   ServerIndex& index = context.GetIndex();
 
   ASSERT_EQ(1u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence));
@@ -774,8 +775,8 @@
   FilesystemStorage storage(path);
   DatabaseWrapper db;   // The SQLite DB is in memory
   db.Open();
-  ServerContext context(db, storage, true /* running unit tests */,
-                        false /* don't reload jobs */);
+  ServerContext context(db, storage, true /* running unit tests */);
+  context.SetupJobsEngine(true, false);
   ServerIndex& index = context.GetIndex();
 
   index.SetMaximumStorageSize(10);