Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Unified Diff: server/auth/context_test.go

Issue 2646543003: server/auth: Add TokenSource call. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/auth/client_test.go ('k') | server/auth/delegation_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/auth/context_test.go
diff --git a/server/auth/context_test.go b/server/auth/context_test.go
index 6fdb481189b947e50c76033323068d3dd5021d41..848b0d324b7a64f8bb3f3769662eaa1b68a07287 100644
--- a/server/auth/context_test.go
+++ b/server/auth/context_test.go
@@ -20,6 +20,8 @@ import (
)
func TestContext(t *testing.T) {
+ t.Parallel()
+
Convey("Works", t, func() {
c := context.Background()
@@ -53,6 +55,8 @@ func TestContext(t *testing.T) {
}
func TestContextAuthenticate(t *testing.T) {
+ t.Parallel()
+
call := func(c context.Context, m router.MiddlewareChain, h router.Handler) *httptest.ResponseRecorder {
req, err := http.NewRequest("GET", "http://example.com/foo", nil)
So(err, ShouldBeNil)
@@ -112,6 +116,8 @@ func TestContextAuthenticate(t *testing.T) {
}
func TestAutologin(t *testing.T) {
+ t.Parallel()
+
call := func(c context.Context, m router.MiddlewareChain, h router.Handler) *httptest.ResponseRecorder {
req, err := http.NewRequest("GET", "http://example.com/foo", nil)
So(err, ShouldBeNil)
« no previous file with comments | « server/auth/client_test.go ('k') | server/auth/delegation_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698