summaryrefslogtreecommitdiff
path: root/jstests/sharding/sharding_balance4.js
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@mongodb.com>2019-08-14 13:52:59 +0000
committerevergreen <evergreen@mongodb.com>2019-08-14 13:52:59 +0000
commit39c3a5d77b976e131d37476f2e7255d6058f5093 (patch)
tree01cc28719f215b17196ec913f475cd8efda9b37d /jstests/sharding/sharding_balance4.js
parent69d0dd1dc4fb1f78d21c47aa5dd82aa9077b69eb (diff)
downloadmongo-39c3a5d77b976e131d37476f2e7255d6058f5093.tar.gz
SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked()
Diffstat (limited to 'jstests/sharding/sharding_balance4.js')
-rw-r--r--jstests/sharding/sharding_balance4.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/sharding_balance4.js b/jstests/sharding/sharding_balance4.js
index e97a6366120..57dfe723830 100644
--- a/jstests/sharding/sharding_balance4.js
+++ b/jstests/sharding/sharding_balance4.js
@@ -62,7 +62,7 @@ for (i = 0; i < N; i++) {
for (i = 0; i < N * 9; i++) {
doUpdate(bulk, false);
}
-assert.writeOK(bulk.execute());
+assert.commandWorked(bulk.execute());
for (var i = 0; i < 50; i++) {
s.printChunks("test.foo");
@@ -130,7 +130,7 @@ function diff1() {
}
}
- assert.writeOK(res);
+ assert.commandWorked(res);
});
} else {
consecutiveNoProgressMadeErrors = 0;