Skip to content

Commit 45df24d

Browse files
committed
appease fmt
1 parent 043004f commit 45df24d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

coderd/httpmw/apikey_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -530,13 +530,13 @@ func TestAPIKey(t *testing.T) {
530530
)
531531
r.Header.Set(codersdk.SessionTokenHeader, token)
532532

533-
// Include a valid oauth token for refreshing. If this token is invalid,
534-
// it is difficult to tell an auth failure from a expired api key, or
535-
// an expired oauth key.
536-
oauthToken := &oauth2.Token{
537-
AccessToken: "wow",
538-
RefreshToken: "moo",
539-
Expiry: dbtime.Now().AddDate(0, 0, 1),
533+
// Include a valid oauth token for refreshing. If this token is invalid,
534+
// it is difficult to tell an auth failure from an expired api key, or
535+
// an expired oauth key.
536+
oauthToken := &oauth2.Token{
537+
AccessToken: "wow",
538+
RefreshToken: "moo",
539+
Expiry: dbtime.Now().AddDate(0, 0, 1),
540540
}
541541
httpmw.ExtractAPIKeyMW(httpmw.ExtractAPIKeyConfig{
542542
DB: db,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy