summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2020-02-28 11:47:34 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-29 05:23:36 +0000
commit1d25290073c75905f0e8712aefda8b74740bbef4 (patch)
treec4192b2933f7f5e29d2948e569ec8b20c6f08b41 /src
parent8ec0941a0d72286dd53b10990b15b51402570b24 (diff)
downloadmongo-1d25290073c75905f0e8712aefda8b74740bbef4.tar.gz
SERVER-46479 Make comparison of expected and actual chunk ranges independent of LogicalClock in initial_split_policy_test.cpp
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/s/config/initial_split_policy_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/config/initial_split_policy_test.cpp b/src/mongo/db/s/config/initial_split_policy_test.cpp
index 739965ffc19..bcddff3837f 100644
--- a/src/mongo/db/s/config/initial_split_policy_test.cpp
+++ b/src/mongo/db/s/config/initial_split_policy_test.cpp
@@ -66,8 +66,8 @@ void assertChunkVectorsAreEqual(const std::vector<ChunkType>& expected,
for (auto expectedIt = expected.begin(), actualIt = actual.begin();
expectedIt != expected.end() && actualIt != actual.end();
++expectedIt, ++actualIt) {
- ASSERT_BSONOBJ_EQ((*expectedIt).toShardBSON().removeField("lastmod"),
- (*actualIt).toShardBSON().removeField("lastmod"));
+ ASSERT_BSONOBJ_EQ((*expectedIt).toShardBSON().removeField("lastmod").removeField("history"),
+ (*actualIt).toShardBSON().removeField("lastmod").removeField("history"));
}
}