Showing the changes to internal/github (1 of 11 files). Show all
Unified · Split
| @@ -27,8 +27,8 @@ func writeRateLimits(t *testing.T, w http.ResponseWriter, resetAt time.Time, cor · 26 unmodified lines | ||
| 27 | 27 | |
| 28 | 28 | func TestListRepositoryIssuesPaginatesAndLimits(t *testing.T) { |
| 29 | 29 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 30 | − if r.Header.Get("Authorization") != "Bearer token" { | |
| 31 | − t.Fatalf("missing auth header: %q", r.Header.Get("Authorization")) | |
| 30 | + if got := r.Header.Get("Authorization"); got != "Bearer token" { | |
| 31 | + t.Fatalf("auth header mismatch: present=%t length=%d", got != "", len(got)) | |
| 32 | 32 | } |
| 33 | 33 | switch r.URL.Query().Get("page") { |
| 34 | 34 | case "": |