summaryrefslogtreecommitdiff
path: root/git_test.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2021-09-05 16:39:07 -0700
committerGitHub <[email protected]>2021-09-05 16:39:07 -0700
commitb983e1daebf528443e2a3954cd595fa3664ec93f (patch)
tree51ed7f7c359c9548dad7afa1a445749380d59f66 /git_test.go
parentf1fa96c7b7f548389c7560d3a1a0bce83be56c9f (diff)
Add support for managed HTTP/S transports (#810)
This change uses the newly-exposed Transport interface to use Go's implementation of http.Client instead of httpclient via libgit2.
Diffstat (limited to 'git_test.go')
-rw-r--r--git_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/git_test.go b/git_test.go
index 101350f..592e06f 100644
--- a/git_test.go
+++ b/git_test.go
@@ -11,6 +11,10 @@ import (
)
func TestMain(m *testing.M) {
+ if err := registerManagedHTTP(); err != nil {
+ panic(err)
+ }
+
ret := m.Run()
if err := unregisterManagedTransports(); err != nil {