This causes the jstest to accidentally not be run, and so always pass.
https://github.com/mongodb/mongo/blob/r3.3.4/jstests/sharding/shard_keycount.js#L46
Just needs
diff --git a/jstests/sharding/shard_keycount.js b/jstests/sharding/shard_keycount.js
|
index 9a63a2c..893e201 100644
|
--- a/jstests/sharding/shard_keycount.js
|
+++ b/jstests/sharding/shard_keycount.js
|
@@ -43,4 +43,4 @@
|
|
s.stop();
|
|
-});
|
+})(); |
Command where this was noticed (this seems to be the only occurrence, but I didn't check thoroughly)
for i in `grep -l '^(function *()' jstests/*/*`; do echo; echo "$i"; tail -1 "$i"; done |
cc Kamran K.
- related to
-
SERVER-23728 Enable the no-unused-expressions ESLint rule to find dead code
-
- Closed
-