From 80f7c936916eb7dbb3131b1a48a0a75df1d5c1e0 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 10 Mar 2022 15:04:30 +0100 Subject: [PATCH] fix(shell-api): relax sharding test expectations MONGOSH-1152 Relax the test expectations to account for upcoming changes in 6.0. --- packages/shell-api/src/shard.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/shell-api/src/shard.spec.ts b/packages/shell-api/src/shard.spec.ts index 3eb113ea2b..7b44b5ece7 100644 --- a/packages/shell-api/src/shard.spec.ts +++ b/packages/shell-api/src/shard.spec.ts @@ -1529,7 +1529,8 @@ describe('Shard', () => { const databasesDbItem = result.value.databases.find((item) => (item.database._id === 'db')); expect(databasesDbItem.database.partitioned).to.equal(false); const databasesDbShItem = result.value.databases.find((item) => (item.database._id === 'dbSh')); - expect(databasesDbShItem.database.partitioned).to.equal(true); + // Cannot get strict guarantees about the value of this field since SERVER-60926 + expect(databasesDbShItem.database.partitioned).to.be.a('boolean'); }); }); });