Skip to content

Commit 1166dd2

Browse files
committed
create both orders of index
1 parent 700b138 commit 1166dd2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/verifier/metadata_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ func (suite *IntegrationTestSuite) TestShardingMismatch() {
101101
bson.D{
102102
{"createIndexes", "id_and_foo"},
103103
{"indexes", []bson.D{
104+
{
105+
{"name", "foo_1"},
106+
{"key", bson.D{{"foo", 1}, {"_id", "1"}}},
107+
},
104108
{
105109
{"name", "foo_1"},
106110
{"key", bson.D{{"_id", "1"}, {"foo", 1}}},
@@ -169,6 +173,10 @@ func (suite *IntegrationTestSuite) TestShardingMismatch() {
169173
{"name", "foo_1"},
170174
{"key", bson.D{{"foo", 1}, {"_id", "1"}}},
171175
},
176+
{
177+
{"name", "foo_1"},
178+
{"key", bson.D{{"_id", "1"}, {"foo", 1}}},
179+
},
172180
}},
173181
},
174182
).Err(),

0 commit comments

Comments
 (0)