summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/distinct_noindex.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/concurrency/fsm_workloads/distinct_noindex.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/concurrency/fsm_workloads/distinct_noindex.js')
-rw-r--r--jstests/concurrency/fsm_workloads/distinct_noindex.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/jstests/concurrency/fsm_workloads/distinct_noindex.js b/jstests/concurrency/fsm_workloads/distinct_noindex.js
index 6a38830f9d6..b55d1e58d3b 100644
--- a/jstests/concurrency/fsm_workloads/distinct_noindex.js
+++ b/jstests/concurrency/fsm_workloads/distinct_noindex.js
@@ -24,7 +24,7 @@ var $config = (function() {
var bulk = db[collName].initializeUnorderedBulkOp();
for (var i = 0; i < this.numDocs; ++i) {
- bulk.insert({ i: i % this.modulus, tid: this.tid });
+ bulk.insert({i: i % this.modulus, tid: this.tid});
}
var res = bulk.execute();
assertAlways.writeOK(res);
@@ -32,8 +32,7 @@ var $config = (function() {
}
function distinct(db, collName) {
- assertWhenOwnColl.eq(this.modulus,
- db[collName].distinct('i', { tid: this.tid }).length);
+ assertWhenOwnColl.eq(this.modulus, db[collName].distinct('i', {tid: this.tid}).length);
}
return {
@@ -44,8 +43,8 @@ var $config = (function() {
})();
var transitions = {
- init: { distinct: 1 },
- distinct: { distinct: 1 }
+ init: {distinct: 1},
+ distinct: {distinct: 1}
};
return {