Skip to content

Commit 4385e60

Browse files
njacazioshahor02
authored andcommitted
Implement upper limit in CCDB manager test
1 parent 60d6c3a commit 4385e60

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CCDB/test/testBasicCCDBManager.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ BOOST_AUTO_TEST_CASE(TestBasicCCDBManager)
9999
LOG(INFO) << "Reading B after cleaning cache completely: " << *objB;
100100
BOOST_CHECK(objB && (*objB) == ccdbObjO); // make sure correct object is loaded
101101

102+
// get object in TimeMachine mode in the past
103+
cdb.setUpperValidity(1); // set upper object validity
104+
objA = cdb.get<std::string>(pathA); // should not be loaded
105+
BOOST_CHECK(!objA); // make sure correct object is not loaded
106+
cdb.resetUpperValidity(); // resetting upper validity limit
107+
102108
// disable cache at all (will also clean it)
103109
cdb.setCachingEnabled(false);
104110
objA = cdb.get<std::string>(pathA); // will be loaded from scratch, w/o filling the cache

0 commit comments

Comments
 (0)