Skip to content

Commit 1784516

Browse files
committed
fix string 1
1 parent 1166dd2 commit 1784516

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

internal/verifier/metadata_test.go

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (suite *IntegrationTestSuite) TestShardingMismatch() {
7676
shardCollection(
7777
suite.srcMongoClient,
7878
"id_and_foo",
79-
bson.D{{"_id", "1"}, {"foo", 1}},
79+
bson.D{{"_id", 1}, {"foo", 1}},
8080
"src",
8181
)
8282
} else {
@@ -102,12 +102,12 @@ func (suite *IntegrationTestSuite) TestShardingMismatch() {
102102
{"createIndexes", "id_and_foo"},
103103
{"indexes", []bson.D{
104104
{
105-
{"name", "foo_1"},
106-
{"key", bson.D{{"foo", 1}, {"_id", "1"}}},
105+
{"name", "foo_1__id_1"},
106+
{"key", bson.D{{"foo", 1}, {"_id", 1}}},
107107
},
108108
{
109-
{"name", "foo_1"},
110-
{"key", bson.D{{"_id", "1"}, {"foo", 1}}},
109+
{"name", "_id_1_foo_1"},
110+
{"key", bson.D{{"_id", 1}, {"foo", 1}}},
111111
},
112112
}},
113113
},
@@ -138,7 +138,7 @@ func (suite *IntegrationTestSuite) TestShardingMismatch() {
138138
shardCollection(
139139
suite.dstMongoClient,
140140
"id_and_foo",
141-
bson.D{{"foo", 1}, {"_id", "1"}},
141+
bson.D{{"foo", 1}, {"_id", 1}},
142142
"dst",
143143
)
144144
shardCollection(
@@ -170,12 +170,12 @@ func (suite *IntegrationTestSuite) TestShardingMismatch() {
170170
{"createIndexes", "id_and_foo"},
171171
{"indexes", []bson.D{
172172
{
173-
{"name", "foo_1"},
174-
{"key", bson.D{{"foo", 1}, {"_id", "1"}}},
173+
{"name", "foo_1__id_1"},
174+
{"key", bson.D{{"foo", 1}, {"_id", 1}}},
175175
},
176176
{
177-
{"name", "foo_1"},
178-
{"key", bson.D{{"_id", "1"}, {"foo", 1}}},
177+
{"name", "_id_1_foo_1"},
178+
{"key", bson.D{{"_id", 1}, {"foo", 1}}},
179179
},
180180
}},
181181
},
@@ -243,8 +243,6 @@ func (suite *IntegrationTestSuite) TestShardingMismatch() {
243243
taskMap[dbname+".sharded_dst"].Status,
244244
"catch dst-only sharded",
245245
)
246-
247-
suite.T().Logf("tasks: %+v", tasks)
248246
} else {
249247
for _, task := range tasks {
250248
suite.Assert().Equal(

0 commit comments

Comments
 (0)