summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/transaction_reaper.js
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2018-03-02 15:48:22 -0500
committerJason Carey <jcarey@argv.me>2018-03-06 15:35:38 -0500
commit1365c273c4b1aab22f70750963a910332a0db992 (patch)
tree03c1d5c224eeae68087bb6f97b4c959b97486e45 /jstests/noPassthrough/transaction_reaper.js
parent2999202e0ca0e2a911352acbc47643650e7cefb8 (diff)
downloadmongo-1365c273c4b1aab22f70750963a910332a0db992.tar.gz
SERVER-33636 assert on transaction_reaper.js write
The transaction_reaper jstest should actually assert it's writes, rather than noticing that they failed later.
Diffstat (limited to 'jstests/noPassthrough/transaction_reaper.js')
-rw-r--r--jstests/noPassthrough/transaction_reaper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/transaction_reaper.js b/jstests/noPassthrough/transaction_reaper.js
index bde965e9c22..cdf58ec481e 100644
--- a/jstests/noPassthrough/transaction_reaper.js
+++ b/jstests/noPassthrough/transaction_reaper.js
@@ -84,7 +84,7 @@
for (var i = 0; i < nSessions; i++) {
// make a session and get it to the collection
var session = this.sessions[i];
- session.getDatabase("test").test.save({a: 1});
+ assert.writeOK(session.getDatabase("test").test.save({a: 1}));
}
// Ensure a write flushes a transaction