@@ -9,7 +9,6 @@ def test_shard_collection_in_tx(t: Testing):
99 with t .run (phase = Runner .Phase .APPLY ):
1010 with t .source .start_session () as sess :
1111 sess .start_transaction ()
12- t .source .admin .command ("enableSharding" , "db_1" )
1312 t .source ["db_1" ].create_collection ("coll_1" )
1413 t .source .admin .command ("shardCollection" , "db_1.coll_1" , key = {"_id" : 1 })
1514 t .source ["db_1" ]["coll_1" ].insert_one ({"i" : 1 }, session = sess )
@@ -23,8 +22,6 @@ def test_shard_collection_in_tx(t: Testing):
2322
2423
2524def test_simple (t : Testing ):
26- t .source .admin .command ("enableSharding" , "db_1" )
27- t .source .admin .command ("enableSharding" , "db_2" )
2825 t .source ["db_1" ].create_collection ("coll_1" )
2926 t .source .admin .command ("shardCollection" , "db_1.coll_1" , key = {"_id" : 1 })
3027 t .source ["db_2" ].create_collection ("coll_2" )
@@ -46,7 +43,6 @@ def test_simple(t: Testing):
4643
4744
4845def test_simple_mix (t : Testing ):
49- t .source .admin .command ("enableSharding" , "db_1" )
5046 t .source ["db_1" ].create_collection ("coll_1" )
5147 t .source .admin .command ("shardCollection" , "db_1.coll_1" , key = {"_id" : 1 })
5248
@@ -68,8 +64,6 @@ def test_simple_mix(t: Testing):
6864
6965
7066def test_simple_aborted (t : Testing ):
71- t .source .admin .command ("enableSharding" , "db_1" )
72- t .source .admin .command ("enableSharding" , "db_2" )
7367 t .source ["db_1" ].create_collection ("coll_1" )
7468 t .source .admin .command ("shardCollection" , "db_1.coll_1" , key = {"_id" : 1 })
7569 t .source ["db_2" ].create_collection ("coll_2" )
@@ -90,7 +84,6 @@ def test_simple_aborted(t: Testing):
9084
9185
9286def test_simple_aborted_mix (t : Testing ):
93- t .source .admin .command ("enableSharding" , "db_1" )
9487 t .source ["db_1" ].create_collection ("coll_1" )
9588 t .source .admin .command ("shardCollection" , "db_1.coll_1" , key = {"_id" : 1 })
9689 t .source ["db_2" ].create_collection ("coll_2" )
@@ -110,7 +103,6 @@ def test_simple_aborted_mix(t: Testing):
110103
111104
112105def test_in_progress (t : Testing ):
113- t .source .admin .command ("enableSharding" , "db_1" )
114106 t .source ["db_1" ].create_collection ("coll_1" )
115107 t .source .admin .command ("shardCollection" , "db_1.coll_1" , key = {"_id" : 1 })
116108
@@ -130,7 +122,6 @@ def test_in_progress(t: Testing):
130122
131123
132124def test_in_progress_aborted (t : Testing ):
133- t .source .admin .command ("enableSharding" , "db_1" )
134125 t .source ["db_1" ].create_collection ("coll_1" )
135126 t .source .admin .command ("shardCollection" , "db_1.coll_1" , key = {"_id" : 1 })
136127
0 commit comments