diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-12-15 12:03:31 -0500 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-12-15 12:03:31 -0500 |
commit | b1ae796faf5f262cd658f59a59d18f8c3eb0d4ee (patch) | |
tree | e5141dc3ca3135a7c38b41cf178f7707652a84ef | |
parent | 5d43961ca1ae0436d851744bf75b9d530469491d (diff) | |
download | mongo-b1ae796faf5f262cd658f59a59d18f8c3eb0d4ee.tar.gz |
SERVER-32353 Do not use neq to compare documents in update_affects_indexes.js
-rw-r--r-- | jstests/core/update_affects_indexes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/update_affects_indexes.js b/jstests/core/update_affects_indexes.js index 93bc4086c62..a396fc29079 100644 --- a/jstests/core/update_affects_indexes.js +++ b/jstests/core/update_affects_indexes.js @@ -21,7 +21,7 @@ let res = coll.find(docId).hint(indexKeyPattern).min(key).returnKey().toArray(); if (res.length > 0) { assert.eq(1, res.length, tojson(res)); - assert.neq(key, res[0]); + assert.neq(0, bsonWoCompare(key, res[0]), tojson(res[0])); } } } |