summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2019-06-24 11:38:05 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2019-06-24 11:38:18 -0400
commit9bde062298f471725c2c28d1c28318a2c2a2e338 (patch)
tree4e931cf4b1579615e8d75771d2bda6439e745e04 /jstests
parentcd0445deb709a5c6f304f166fe6d4d0e41703bd0 (diff)
downloadmongo-9bde062298f471725c2c28d1c28318a2c2a2e338.tar.gz
SERVER-41164 Fix Lint
Diffstat (limited to 'jstests')
-rw-r--r--jstests/libs/change_stream_util.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/jstests/libs/change_stream_util.js b/jstests/libs/change_stream_util.js
index a78900f3d03..1f44ae43b5c 100644
--- a/jstests/libs/change_stream_util.js
+++ b/jstests/libs/change_stream_util.js
@@ -243,16 +243,17 @@ function ChangeStreamTest(_db, name = "ChangeStreamTest") {
/**
* Retrieves the next batch in the change stream and confirms that it is empty.
*/
- self.assertNoChange = function(cursor) {
- cursor = self.getNextBatch(cursor);
- assert.eq(0, cursor.nextBatch.length, () => "Cursor had changes: " + tojson(cursor));
+ self.assertNoChange =
+ function(cursor) {
+ cursor = self.getNextBatch(cursor);
+ assert.eq(0, cursor.nextBatch.length, () => "Cursor had changes: " + tojson(cursor));
}
- /**
- * Gets the next document in the change stream. This always executes a 'getMore' first.
- * If the current batch has a document in it, that one will be ignored.
- */
- self.getOneChange = function(cursor, expectInvalidate = false) {
+ /**
+ * Gets the next document in the change stream. This always executes a 'getMore' first.
+ * If the current batch has a document in it, that one will be ignored.
+ */
+ self.getOneChange = function(cursor, expectInvalidate = false) {
changes = self.assertNextChangesEqual({
cursor: cursor,
expectedNumChanges: 1,