From 21169a8fb3064c79a1045f743d04f56160feef87 Mon Sep 17 00:00:00 2001 From: Tess Avitabile Date: Mon, 2 Nov 2020 16:07:14 +0000 Subject: SERVER-52560 oplog_writes_only_permitted_on_standalone.js must wait for insert to be in stable checkpoint --- jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js b/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js index 1e77d01c561..82c6ad8c0a0 100644 --- a/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js +++ b/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js @@ -15,7 +15,8 @@ rst.startSet(); rst.initiateWithHighElectionTimeout(); let conn = rst.getPrimary(); -assert.commandWorked(conn.getDB("test").coll.insert({_id: 0, a: 0})); +assert.commandWorked( + conn.getDB("test").coll.insert({_id: 0, a: 0}, {writeConcern: {w: "majority"}})); let oplog = conn.getDB("local").oplog.rs; -- cgit v1.2.1