summaryrefslogtreecommitdiff
path: root/jstests/readonly/lib
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/readonly/lib
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/readonly/lib')
-rw-r--r--jstests/readonly/lib/read_only_test.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/jstests/readonly/lib/read_only_test.js b/jstests/readonly/lib/read_only_test.js
index d544cf5bd08..55af207a399 100644
--- a/jstests/readonly/lib/read_only_test.js
+++ b/jstests/readonly/lib/read_only_test.js
@@ -17,7 +17,6 @@ function makeDirectoryWritable(dir) {
}
function runReadOnlyTest(test) {
-
printjson(test);
assert.eq(typeof(test.exec), 'function');
@@ -40,10 +39,8 @@ function runReadOnlyTest(test) {
makeDirectoryReadOnly(dbpath);
try {
- var readOnlyOptions = Object.extend(options,
- {readOnly: '',
- dbpath: dbpath,
- noCleanData: true});
+ var readOnlyOptions =
+ Object.extend(options, {readOnly: '', dbpath: dbpath, noCleanData: true});
var readOnlyMongod = MongoRunner.runMongod(readOnlyOptions);
@@ -59,13 +56,13 @@ function runReadOnlyTest(test) {
}
}
-function* cycleN(arr, N) {
+function * cycleN(arr, N) {
for (var i = 0; i < N; ++i) {
yield arr[i % arr.length];
}
}
-function* zip2(iter1, iter2) {
+function * zip2(iter1, iter2) {
var n1 = iter1.next();
var n2 = iter2.next();
while (!n1.done || !n2.done) {