passing synclog and scheduler as parameter to synccore
diff --git a/test/test-sync-core.cc b/test/test-sync-core.cc
index fa6eafd..6936d57 100644
--- a/test/test-sync-core.cc
+++ b/test/test-sync-core.cc
@@ -31,6 +31,10 @@
Name syncPrefix("/broadcast/darkknight");
CcnxWrapperPtr c1(new CcnxWrapper());
CcnxWrapperPtr c2(new CcnxWrapper());
+ SyncLogPtr log1(new SyncLog(dir1, user1.toString()));
+ SyncLogPtr log2(new SyncLog(dir2, user2.toString()));
+
+ SchedulerPtr scheduler(new Scheduler());
// clean the test dir
path d(dir);
@@ -39,9 +43,9 @@
remove_all(d);
}
- SyncCore *core1 = new SyncCore(dir1, user1, loc1, syncPrefix, bind(callback, _1), c1);
+ SyncCore *core1 = new SyncCore(log1, user1, loc1, syncPrefix, bind(callback, _1), c1, scheduler);
usleep(10000);
- SyncCore *core2 = new SyncCore(dir2, user2, loc2, syncPrefix, bind(callback, _1), c2);
+ SyncCore *core2 = new SyncCore(log2, user2, loc2, syncPrefix, bind(callback, _1), c2, scheduler);
usleep(1000000);
checkRoots(core1->root(), core2->root());