Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test_data/makedata_suites/101_collections.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global semver, progress, createCollectionSafe, db, fs, PWD, _, assertTrue, assertEqual */
/* global semver, progress, createCollectionSafe, db, fs, PWD, _, assertTrue, assertEqual, semver */

// this method will declare all the collection name with proper dbCount
let collections_names_declaration = (dbCount) => {
Expand Down Expand Up @@ -375,10 +375,12 @@ function compareProperties(name, obj1, obj2) {
}
});

let currVersion = db._version();
const consolidationIntervalMsec = semver.gt(currVersion, "3.12.5") ? 5000 : 1000;
let expected_output = {
"cleanupIntervalStep" : 2,
"commitIntervalMsec" : 1000,
"consolidationIntervalMsec" : 1000,
"consolidationIntervalMsec" : consolidationIntervalMsec,
"consolidationPolicy" : {
"type" : "tier",
"segmentsBytesFloor" : 2097152,
Expand Down