From 48c3485ab5c4c71588e01c07d128f13c7e909261 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 12 May 2020 11:51:13 -0400 Subject: [PATCH] Drop tests that break with newer oauth2 The bazel test failures are caused by (oauth2: turn Transport.CancelRequest into a no-op)[https://github.com/golang/oauth2/commit/858c2ad4c8b6c5d10852cb89079f6ca1c7309787]: https://github.com/golang/oauth2/compare/0f29369cfe45...858c2ad4c8b6 Signed-off-by: Davanum Srinivas Kubernetes-commit: eea0fea657e5955dedcb6e39bad4dca57d70553c --- transport/token_source_test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/transport/token_source_test.go b/transport/token_source_test.go index 6d61caca..7c2ff6e2 100644 --- a/transport/token_source_test.go +++ b/transport/token_source_test.go @@ -176,17 +176,6 @@ func TestCancellation(t *testing.T) { header: map[string][]string{"Authorization": {"Bearer TOKEN"}}, expectCancel: true, }, - { - name: "cancel req without bearer token hits both rts", - expectCancel: true, - }, - { - name: "cancel req without bearer token hits both wrapped rts", - wrapTransport: func(rt http.RoundTripper) http.RoundTripper { - return NewUserAgentRoundTripper("testing testing", rt) - }, - expectCancel: true, - }, { name: "can't cancel request with rts that doesn't implent unwrap or cancel", wrapTransport: func(rt http.RoundTripper) http.RoundTripper {