jstests/sharding/change_stream_transaction_sharded.js
/**
 * Asserts that there are no changes waiting on the change stream cursor.
 */
Asserts that there are no changes waiting on the change stream cursor.
Asserts that there are no changes waiting on the change stream cursor .
function assertNoChanges(cursor) {
    assert(!cursor.hasNext(), () => {
        return "Unexpected change set: " + tojson(cursor.toArray());
    });
}
function assertNoChanges ( cursor ) { assert ( ! cursor . hasNext ( ) , ( ) => { return "Unexpected change set: " + tojson ( cursor . toArray ( ) ) ; } ) ; }
Asserts that there are no changes waiting on the change stream cursor.
Asserts that there are no changes waiting on the change stream cursor .