Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
Signed-off-by: Atif Ali <atali@redhat.com>
  • Loading branch information
aali309 committed Nov 14, 2024
1 parent f80d5d9 commit 8d1237d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions util/oidc/oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,10 @@ func TestGetUserInfo(t *testing.T) {
},
"groups": []interface{}{"githubOrg:engineers"},
}
json.NewEncoder(w).Encode(response)
// json.NewEncoder(w).Encode(response)
if err := json.NewEncoder(w).Encode(response); err != nil {
t.Errorf("failed to encode response: %v", err)
}
},
cache: cache.NewInMemoryCache(24 * time.Hour),
cacheItems: []struct {
Expand Down Expand Up @@ -907,7 +910,10 @@ func TestGetUserInfo(t *testing.T) {
"sub": "sub-only-user",
"groups": []interface{}{"githubOrg:engineers"},
}
json.NewEncoder(w).Encode(response)
// json.NewEncoder(w).Encode(response)
if err := json.NewEncoder(w).Encode(response); err != nil {
t.Errorf("failed to encode response: %v", err)
}
},
cache: cache.NewInMemoryCache(24 * time.Hour),
cacheItems: []struct {
Expand Down Expand Up @@ -964,7 +970,10 @@ func TestGetUserInfo(t *testing.T) {
},
"groups": []interface{}{"githubOrg:engineers"},
}
json.NewEncoder(w).Encode(response)
// json.NewEncoder(w).Encode(response)
if err := json.NewEncoder(w).Encode(response); err != nil {
t.Errorf("failed to encode response: %v", err)
}
},
cache: cache.NewInMemoryCache(24 * time.Hour),
cacheItems: []struct {
Expand Down

0 comments on commit 8d1237d

Please sign in to comment.