We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8de4dc commit 487b9a8Copy full SHA for 487b9a8
tests/functional/api/test_merge_requests.py
@@ -125,10 +125,18 @@ def test_merge_request_should_remove_source_branch(
125
time.sleep(0.5)
126
assert mr.merged_at is not None
127
128
+ result = wait_for_sidekiq(timeout=60)
129
+ assert result is True, "sidekiq process should have terminated but did not"
130
131
# Ensure we can NOT get the MR branch
132
with pytest.raises(gitlab.exceptions.GitlabGetError):
- 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))
140
141
142
def test_merge_request_large_commit_message(
0 commit comments