summaryrefslogtreecommitdiff
path: root/jstests/dur/indexbg2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/dur/indexbg2.js')
-rw-r--r--jstests/dur/indexbg2.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/dur/indexbg2.js b/jstests/dur/indexbg2.js
index a7484f0a561..d239d4eaa44 100644
--- a/jstests/dur/indexbg2.js
+++ b/jstests/dur/indexbg2.js
@@ -15,5 +15,5 @@ for( var i = 1000; i < 2000; ++i ) {
t.insert( {_id:i,a:'abcd',b:'bcde',x:'four score and seven years ago'} );
t.remove( {_id:i} );
}
-t.insert( {_id:2000,a:'abcd',b:'bcde',x:'four score and seven years ago'} );
-assert( !t.getDB().getLastError() );
+assert.writeOK(t.insert({ _id: 2000, a: 'abcd', b: 'bcde', x: 'four score and seven years ago' }));
+