summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/ttl_capped.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/ttl_capped.js')
-rw-r--r--jstests/noPassthrough/ttl_capped.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/jstests/noPassthrough/ttl_capped.js b/jstests/noPassthrough/ttl_capped.js
index a087af2e7f7..c5b26c048d4 100644
--- a/jstests/noPassthrough/ttl_capped.js
+++ b/jstests/noPassthrough/ttl_capped.js
@@ -63,18 +63,21 @@
function msg() {
return "TTL monitor didn't run within " + timeoutSeconds + " seconds";
},
- timeoutSeconds * 1000
- );
+ timeoutSeconds * 1000);
for (var i = 0; i < numCollectionsToCreate; i++) {
var coll = testDB["ttl" + i.zeroPad(width)];
var count = coll.count();
if (i % 3 === 1) {
- assert.eq(1, count, "the TTL monitor shouldn't have removed expired documents from" +
- " the capped collection '" + coll.getFullName() + "'");
+ assert.eq(1,
+ count,
+ "the TTL monitor shouldn't have removed expired documents from" +
+ " the capped collection '" + coll.getFullName() + "'");
} else {
- assert.eq(0, count, "the TTL monitor didn't removed expired documents from the" +
- " collection '" + coll.getFullName() + "'");
+ assert.eq(0,
+ count,
+ "the TTL monitor didn't removed expired documents from the" +
+ " collection '" + coll.getFullName() + "'");
}
}