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

libgit2: refactor tests to use managed and unmanaged transport cleanly #777

Merged
merged 2 commits into from
Jun 9, 2022

Commits on Jun 9, 2022

  1. libgit2: refactor tests to use managed and unmanaged transport cleanly

    Refactors libgit2 checkout tests to test managed and unmanaged
    transport by making sure the tests requiring unmanaged transport are run
    before, any tests that require managed transport (since disabling
    managed transport isn't possible). This is done via arranging the tests
    carefully in alphabetically sorted names, i.e. the tests with unmanaged
    transport go in `checkout_test.go`, which forces golang to run the tests
    in that file before any other tests.
    
    Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
    aryan9600 committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    4ce3131 View commit details
    Browse the repository at this point in the history
  2. assert state of managed transport acc for each test

    Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
    aryan9600 committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    45ee564 View commit details
    Browse the repository at this point in the history