Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit test race condition #2516

Merged
merged 3 commits into from
Sep 15, 2017
Merged

Conversation

ethantkoenig
Copy link
Member

Test would previously fail if the id had not added to pullRequestQueue within 1 millisecond; it now waits until something is added to the queue (with a 1 second timeout).

See https://drone.gitea.io/go-gitea/gitea/606/6 for an example of the test failing.

@lunny
Copy link
Member

lunny commented Sep 15, 2017

LGTM

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 15, 2017
@codecov-io
Copy link

codecov-io commented Sep 15, 2017

Codecov Report

Merging #2516 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2516   +/-   ##
======================================
  Coverage    27.7%   27.7%           
======================================
  Files          83      83           
  Lines       16914   16914           
======================================
  Hits         4686    4686           
  Misses      11553   11553           
  Partials      675     675

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbe5058...2cd79e0. Read the comment docs.

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 15, 2017
@lafriks
Copy link
Member

lafriks commented Sep 15, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 15, 2017
@lafriks lafriks merged commit b496e3e into go-gitea:master Sep 15, 2017
@ethantkoenig ethantkoenig deleted the fix/test_race_cond branch September 18, 2017 03:20
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants