@@ -238,7 +238,10 @@ func TestCSOTProse_GridFS(t *testing.T) {
238238 mt := mtest .New (t , mtest .NewOptions ().CreateClient (false ))
239239
240240 mt .RunOpts ("6. gridfs - upload" , mtest .NewOptions ().MinServerVersion ("4.4" ), func (mt * mtest.T ) {
241- mt .Run ("uploads via openUploadStream can be timed out" , func (mt * mtest.T ) {
241+ // TODO(GODRIVER-3328): FailPoints are not currently reliable on sharded
242+ // topologies. Allow running on sharded topologies once that is fixed.
243+ noShardedOpts := mtest .NewOptions ().Topologies (mtest .Single , mtest .ReplicaSet , mtest .LoadBalanced )
244+ mt .RunOpts ("uploads via openUploadStream can be timed out" , noShardedOpts , func (mt * mtest.T ) {
242245 // Drop and re-create the db.fs.files and db.fs.chunks collections.
243246 err := mt .Client .Database ("db" ).Collection ("fs.files" ).Drop (context .Background ())
244247 assert .NoError (mt , err , "failed to drop files" )
@@ -298,7 +301,9 @@ func TestCSOTProse_GridFS(t *testing.T) {
298301 assert .Error (t , err , context .DeadlineExceeded )
299302 })
300303
301- mt .Run ("Aborting an upload stream can be timed out" , func (mt * mtest.T ) {
304+ // TODO(GODRIVER-3328): FailPoints are not currently reliable on sharded
305+ // topologies. Allow running on sharded topologies once that is fixed.
306+ mt .RunOpts ("Aborting an upload stream can be timed out" , noShardedOpts , func (mt * mtest.T ) {
302307 // Drop and re-create the db.fs.files and db.fs.chunks collections.
303308 err := mt .Client .Database ("db" ).Collection ("fs.files" ).Drop (context .Background ())
304309 assert .NoError (mt , err , "failed to drop files" )
@@ -414,7 +419,12 @@ func TestCSOTProse_GridFS(t *testing.T) {
414419 })
415420
416421 const test62 = "6.2 gridfs - upload with operation-level timeout"
417- mt .RunOpts (test62 , mtest .NewOptions ().MinServerVersion ("4.4" ), func (mt * mtest.T ) {
422+ mtOpts := mtest .NewOptions ().
423+ MinServerVersion ("4.4" ).
424+ // TODO(GODRIVER-3328): FailPoints are not currently reliable on sharded
425+ // topologies. Allow running on sharded topologies once that is fixed.
426+ Topologies (mtest .Single , mtest .ReplicaSet , mtest .LoadBalanced )
427+ mt .RunOpts (test62 , mtOpts , func (mt * mtest.T ) {
418428 // Drop and re-create the db.fs.files and db.fs.chunks collections.
419429 err := mt .Client .Database ("db" ).Collection ("fs.files" ).Drop (context .Background ())
420430 assert .NoError (mt , err , "failed to drop files" )
0 commit comments