File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,18 @@ def test_merge_request_should_remove_source_branch(
125125 time .sleep (0.5 )
126126 assert mr .merged_at is not None
127127 time .sleep (0.5 )
128+ result = wait_for_sidekiq (timeout = 60 )
129+ assert result is True , "sidekiq process should have terminated but did not"
128130
129131 # Ensure we can NOT get the MR branch
130132 with pytest .raises (gitlab .exceptions .GitlabGetError ):
131- project .branches .get (source_branch )
133+ result = project .branches .get (source_branch )
134+ # Help to debug in case the expected exception doesn't happen.
135+ import pprint
136+
137+ print ("mr:" , pprint .pformat (mr ))
138+ print ("mr.merged_at:" , pprint .pformat (mr .merged_at ))
139+ print ("result:" , pprint .pformat (result ))
132140
133141
134142def test_merge_request_large_commit_message (
You can’t perform that action at this time.
0 commit comments