Skip to content
Snippets Groups Projects
Commit 4848d05c authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

End of test expandRepackRequestArchiveSuccess

parent acef19b9
Branches
Tags
No related merge requests found
......@@ -2131,6 +2131,18 @@ TEST_P(SchedulerTest, expandRepackRequestArchiveSuccess) {
//Do the reporting of the Archive Jobs succeeded
Scheduler::RepackReportBatch reports = scheduler.getNextRepackReportBatch(lc);
reports.report(lc);
scheduler.waitSchedulerDbSubthreadsComplete();
}
{
//Test that the repackRequestStatus is set as Complete.
cta::objectstore::RootEntry re(backend);
cta::objectstore::ScopedExclusiveLock sel(re);
re.fetch();
objectstore::RepackIndex ri(re.getRepackIndexAddress(), schedulerDB.getBackend());
ri.fetchNoLock();
cta::objectstore::RepackRequest rr(ri.getRepackRequestAddress(vid),backend);
rr.fetchNoLock();
ASSERT_EQ(common::dataStructures::RepackInfo::Status::Complete,rr.getInfo().status);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment