Skip to content

Commit c028e99

Browse files
committed
Use authentication in dependencies_test
to avoid rate limiting Signed-off-by: Praveen Rewar <[email protected]>
1 parent a5d0fc8 commit c028e99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hack/dependencies_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ import (
1414
)
1515

1616
func init() {
17-
client = http.DefaultClient
17+
client = &http.Client{
18+
// try to use a Github API token from the environment to avoid rate-limiting
19+
Transport: newGithubTransport(),
20+
}
1821
}
1922

2023
func TestDependencyDownload(t *testing.T) {
21-
client = http.DefaultClient
2224
for _, tc := range []struct {
2325
name string
2426
dep dependency

0 commit comments

Comments
 (0)