@@ -121,15 +121,15 @@ func createFuncMap(t *testing.T, dbName string, collName string, monitored bool)
121
121
res := coll .FindOneAndUpdate (mctx , emptyDoc , updateDoc )
122
122
return res .err
123
123
}},
124
- {"DropCollection" , coll , nil , func (mctx SessionContext ) error { err := coll .Drop (mctx ); return err }},
125
- {"DropDatabase" , coll , nil , func (mctx SessionContext ) error { err := db .Drop (mctx ); return err }},
126
124
{"ListCollections" , coll , nil , func (mctx SessionContext ) error { _ , err := db .ListCollections (mctx , emptyDoc ); return err }},
127
125
{"ListDatabases" , coll , nil , func (mctx SessionContext ) error { _ , err := client .ListDatabases (mctx , emptyDoc ); return err }},
128
126
{"CreateOneIndex" , coll , nil , func (mctx SessionContext ) error { _ , err := iv .CreateOne (mctx , fooIndex ); return err }},
129
127
{"CreateManyIndexes" , coll , nil , func (mctx SessionContext ) error { _ , err := iv .CreateMany (mctx , manyIndexes ); return err }},
130
128
{"DropOneIndex" , coll , & iv , func (mctx SessionContext ) error { _ , err := iv .DropOne (mctx , "barIndex" ); return err }},
131
129
{"DropAllIndexes" , coll , nil , func (mctx SessionContext ) error { _ , err := iv .DropAll (mctx ); return err }},
132
130
{"ListIndexes" , coll , nil , func (mctx SessionContext ) error { _ , err := iv .List (mctx ); return err }},
131
+ {"DropCollection" , coll , nil , func (mctx SessionContext ) error { err := coll .Drop (mctx ); return err }},
132
+ {"DropDatabase" , coll , nil , func (mctx SessionContext ) error { err := db .Drop (mctx ); return err }},
133
133
}
134
134
135
135
return client , db , coll , functions
0 commit comments