gitserver: Include cancellable context in tests
Created by: ryanslade
We sometimes see test failures in CI where tests hang on to database connection for too long. This change attempts to reduce the chance of happening by ensuring that the context used in the tests are always cancelled.