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 ListUnadoptedRepositories incorrect total count #17865

Merged
merged 1 commit into from
Jan 1, 2022

Commits on Dec 31, 2021

  1. services/repository: fix ListUnadoptedRepositories incorrect total count

    The total count returned by ListUnadoptedRepositories is incorrectly
    calculated.
    
    The code snippet within ListUnadoptedRepositories used to verify
    unadopted repositories is repeated three times in the function. It is
    moved in the checkUnadoptedRepositories function and a unit test is
    added to verify it works as expected.
    
    A unit test is added to verify the total count returned by
    ListUnadoptedRepositories is as expected.
    
    Signed-off-by: singuliere <singuliere@autistici.org>
    singuliere committed Dec 31, 2021
    Configuration menu
    Copy the full SHA
    99f3b1f View commit details
    Browse the repository at this point in the history