@@ -150,8 +150,7 @@ def test_merge_request_should_remove_source_branch(
150150
151151 mr .merge (should_remove_source_branch = True )
152152
153- result = wait_for_sidekiq (timeout = 60 )
154- assert result is True , "sidekiq process should have terminated but did not"
153+ wait_for_sidekiq (timeout = 60 )
155154
156155 # Wait until it is merged
157156 mr_iid = mr .iid
@@ -162,8 +161,7 @@ def test_merge_request_should_remove_source_branch(
162161 time .sleep (0.5 )
163162 assert mr .merged_at is not None
164163 time .sleep (0.5 )
165- result = wait_for_sidekiq (timeout = 60 )
166- assert result is True , "sidekiq process should have terminated but did not"
164+ wait_for_sidekiq (timeout = 60 )
167165
168166 # Ensure we can NOT get the MR branch
169167 with pytest .raises (gitlab .exceptions .GitlabGetError ):
@@ -195,8 +193,7 @@ def test_merge_request_large_commit_message(
195193 merge_commit_message = merge_commit_message , should_remove_source_branch = False
196194 )
197195
198- result = wait_for_sidekiq (timeout = 60 )
199- assert result is True , "sidekiq process should have terminated but did not"
196+ wait_for_sidekiq (timeout = 60 )
200197
201198 # Wait until it is merged
202199 mr_iid = mr .iid
@@ -235,8 +232,7 @@ def test_merge_request_merge_ref_should_fail(
235232 "commit_message" : "Another commit in main branch" ,
236233 }
237234 )
238- result = wait_for_sidekiq (timeout = 60 )
239- assert result is True , "sidekiq process should have terminated but did not"
235+ wait_for_sidekiq (timeout = 60 )
240236
241237 # Check for non-existing merge_ref for MR with conflicts
242238 with pytest .raises (gitlab .exceptions .GitlabGetError ):
0 commit comments