@@ -84,7 +84,11 @@ class DataMigrationsTestBase(RedpandaTest):
8484
8585 log_segment_size = 10 * 1024
8686
87- def __init__ (self , test_context : TestContext , * args , ** kwargs ):
87+ def __init__ (self ,
88+ test_context : TestContext ,
89+ * args ,
90+ transition_timeout : int = 90 ,
91+ ** kwargs ):
8892 kwargs ['si_settings' ] = SISettings (
8993 test_context = test_context ,
9094 log_segment_size = self .log_segment_size ,
@@ -93,6 +97,7 @@ def __init__(self, test_context: TestContext, *args, **kwargs):
9397 cloud_storage_enable_remote_write = True ,
9498 )
9599 super ().__init__ (test_context = test_context , * args , ** kwargs )
100+ self .transition_timeout = transition_timeout
96101 self .flaky_admin = Admin (self .redpanda , retry_codes = [503 , 504 ])
97102 self .admin = Admin (self .redpanda )
98103
@@ -178,7 +183,7 @@ def migration_in_one_of_states():
178183 self .logger .info (f'waiting for { " or " .join (states )} ' )
179184 wait_until (
180185 migration_in_one_of_states ,
181- timeout_sec = 90 ,
186+ timeout_sec = self . transition_timeout ,
182187 backoff_sec = 1 ,
183188 err_msg =
184189 f"Failed waiting for migration { id } to reach one of { states } states"
@@ -212,7 +217,7 @@ def migration_is_absent(id: int):
212217
213218 wait_until (
214219 lambda : migration_is_absent (migration_id ),
215- timeout_sec = 90 ,
220+ timeout_sec = self . transition_timeout ,
216221 backoff_sec = 2 ,
217222 err_msg = f"Expected migration with id { migration_id } is absent" )
218223
0 commit comments