@@ -238,7 +238,10 @@ func TestCSOTProse_GridFS(t *testing.T) {
238
238
mt := mtest .New (t , mtest .NewOptions ().CreateClient (false ))
239
239
240
240
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 ) {
242
245
// Drop and re-create the db.fs.files and db.fs.chunks collections.
243
246
err := mt .Client .Database ("db" ).Collection ("fs.files" ).Drop (context .Background ())
244
247
assert .NoError (mt , err , "failed to drop files" )
@@ -298,7 +301,9 @@ func TestCSOTProse_GridFS(t *testing.T) {
298
301
assert .Error (t , err , context .DeadlineExceeded )
299
302
})
300
303
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 ) {
302
307
// Drop and re-create the db.fs.files and db.fs.chunks collections.
303
308
err := mt .Client .Database ("db" ).Collection ("fs.files" ).Drop (context .Background ())
304
309
assert .NoError (mt , err , "failed to drop files" )
@@ -414,7 +419,12 @@ func TestCSOTProse_GridFS(t *testing.T) {
414
419
})
415
420
416
421
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 ) {
418
428
// Drop and re-create the db.fs.files and db.fs.chunks collections.
419
429
err := mt .Client .Database ("db" ).Collection ("fs.files" ).Drop (context .Background ())
420
430
assert .NoError (mt , err , "failed to drop files" )
0 commit comments