@@ -177,9 +177,9 @@ def test_changing_role(
177
177
mongodb_role ["spec" ]["roles" ][0 ]["role" ] = "readWrite"
178
178
mongodb_role .update ()
179
179
180
- wait_until (lambda : replica_set .get_automation_config_tester ().reached_version (rs_version + 1 ))
181
- wait_until (lambda : sharded_cluster .get_automation_config_tester ().reached_version (sc_version + 1 ))
182
- wait_until (lambda : mc_replica_set .get_automation_config_tester ().reached_version (mcrs_version + 1 ))
180
+ wait_until (lambda : replica_set .get_automation_config_tester ().reached_version (rs_version + 1 ), timeout = 120 )
181
+ wait_until (lambda : sharded_cluster .get_automation_config_tester ().reached_version (sc_version + 1 ), timeout = 120 )
182
+ wait_until (lambda : mc_replica_set .get_automation_config_tester ().reached_version (mcrs_version + 1 ), timeout = 120 )
183
183
184
184
replica_set .get_automation_config_tester ().assert_expected_role (
185
185
role_index = 0 , expected_value = mongodb_role .get_role ()
@@ -200,7 +200,7 @@ def test_removing_role_from_replica_set(replica_set: MongoDB):
200
200
replica_set .update ()
201
201
202
202
replica_set .assert_reaches_phase (Phase .Running )
203
- wait_until (lambda : replica_set .get_automation_config_tester ().reached_version (rs_version + 1 ))
203
+ wait_until (lambda : replica_set .get_automation_config_tester ().reached_version (rs_version + 1 ), timeout = 120 )
204
204
replica_set .get_automation_config_tester ().assert_has_expected_number_of_roles (expected_roles = 0 )
205
205
206
206
@@ -225,7 +225,7 @@ def test_remove_role_from_sharded_cluster(sharded_cluster: MongoDB, mongodb_role
225
225
sharded_cluster .update ()
226
226
227
227
sharded_cluster .assert_reaches_phase (Phase .Running )
228
- wait_until (lambda : sharded_cluster .get_automation_config_tester ().reached_version (sc_version + 1 ))
228
+ wait_until (lambda : sharded_cluster .get_automation_config_tester ().reached_version (sc_version + 1 ), timeout = 120 )
229
229
sharded_cluster .get_automation_config_tester ().assert_has_expected_number_of_roles (expected_roles = 0 )
230
230
231
231
# Resource should still exist since MCRS is still referencing it
@@ -243,7 +243,7 @@ def test_remove_role_from_mc_replica_set(mc_replica_set: MongoDBMulti, mongodb_r
243
243
mc_replica_set .update ()
244
244
245
245
mc_replica_set .assert_reaches_phase (Phase .Running )
246
- wait_until (lambda : mc_replica_set .get_automation_config_tester ().reached_version (mcrs_version + 1 ))
246
+ wait_until (lambda : mc_replica_set .get_automation_config_tester ().reached_version (mcrs_version + 1 ), timeout = 120 )
247
247
mc_replica_set .get_automation_config_tester ().assert_has_expected_number_of_roles (expected_roles = 0 )
248
248
249
249
# No resources are referencing this role, should be gone
0 commit comments