diff options
author | Benety Goh <benety@mongodb.com> | 2018-12-31 13:26:48 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-12-31 13:27:11 -0500 |
commit | 63bfdedec32acbfe3279c5b7ebcbdcd00c9ff23d (patch) | |
tree | 606890588c7699bdced450040235b7365a9b2624 | |
parent | cc1ac3b8e3ba813de5321d7b7837865feeedf356 (diff) | |
download | mongo-63bfdedec32acbfe3279c5b7ebcbdcd00c9ff23d.tar.gz |
SERVER-38548 add missing ns field to index specs in kv engine tests
-rw-r--r-- | src/mongo/db/storage/kv/kv_engine_test_harness.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp index dd7841ba251..a95948d46c4 100644 --- a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp +++ b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp @@ -149,7 +149,9 @@ TEST(KVEngineTestHarness, SimpleSorted1) { string ident = "abc"; IndexDescriptor desc(nullptr, "", - BSON("v" << static_cast<int>(IndexDescriptor::kLatestIndexVersion) << "key" + BSON("v" << static_cast<int>(IndexDescriptor::kLatestIndexVersion) << "ns" + << "mydb.mycoll" + << "key" << BSON("a" << 1))); unique_ptr<SortedDataInterface> sorted; { @@ -554,6 +556,8 @@ DEATH_TEST(KVCatalogTest, TerminateOnNonNumericIndexVersion, "Fatal Assertion 50 "", BSON("v" << "1" + << "ns" + << "mydb.mycoll" << "key" << BSON("a" << 1))); unique_ptr<SortedDataInterface> sorted; |