Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit487b9a8

Browse files
chore: attempt to fix flaky functional test
Add an additional check to attempt to solve the flakiness of thetest_merge_request_should_remove_source_branch() test.
1 parentd8de4dc commit487b9a8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎tests/functional/api/test_merge_requests.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,18 @@ def test_merge_request_should_remove_source_branch(
125125
time.sleep(0.5)
126126
assertmr.merged_atisnotNone
127127
time.sleep(0.5)
128+
result=wait_for_sidekiq(timeout=60)
129+
assertresultisTrue,"sidekiq process should have terminated but did not"
128130

129131
# Ensure we can NOT get the MR branch
130132
withpytest.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+
importpprint
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

134142
deftest_merge_request_large_commit_message(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp