From 00675a1c24b9134b299443c6d5d3d353b0e1e147 Mon Sep 17 00:00:00 2001 From: Lahiru Maramba Date: Wed, 23 Oct 2024 21:40:16 +0000 Subject: [PATCH] fix lint errors --- auth/auth_test.go | 8 ++++---- messaging/messaging_test.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/auth/auth_test.go b/auth/auth_test.go index c0c8f91f..0223f8b2 100644 --- a/auth/auth_test.go +++ b/auth/auth_test.go @@ -1452,10 +1452,10 @@ func checkBaseClient(client *Client, wantProjectID string) error { return fmt.Errorf("version = %q; want = %q", version, wantVersion) } - xGoogApiClientHeader := req.Header.Get("x-goog-api-client") - wantXGoogApiClientHeader := fmt.Sprintf("gl-go/%s fire-admin/%s", runtime.Version(), testVersion) - if xGoogApiClientHeader != wantXGoogApiClientHeader { - return fmt.Errorf("x-goog-api-client header = %q; want = %q", xGoogApiClientHeader, wantXGoogApiClientHeader) + xGoogAPIClientHeader := req.Header.Get("x-goog-api-client") + wantXGoogAPIClientHeader := fmt.Sprintf("gl-go/%s fire-admin/%s", runtime.Version(), testVersion) + if xGoogAPIClientHeader != wantXGoogAPIClientHeader { + return fmt.Errorf("x-goog-api-client header = %q; want = %q", xGoogAPIClientHeader, wantXGoogAPIClientHeader) } return nil diff --git a/messaging/messaging_test.go b/messaging/messaging_test.go index a782da8c..a57e5c7e 100644 --- a/messaging/messaging_test.go +++ b/messaging/messaging_test.go @@ -1395,9 +1395,9 @@ func checkFCMRequest(t *testing.T, b []byte, tr *http.Request, want map[string]i if h := tr.Header.Get("X-FIREBASE-CLIENT"); h != clientVersion { t.Errorf("X-FIREBASE-CLIENT = %q; want = %q", h, clientVersion) } - xGoogApiClientHeader := "gl-go/" + runtime.Version() + " fire-admin/" + testMessagingConfig.Version - if h := tr.Header.Get("x-goog-api-client"); h != xGoogApiClientHeader { - t.Errorf("x-goog-api-client header = %q; want = %q", h, xGoogApiClientHeader) + xGoogAPIClientHeader := "gl-go/" + runtime.Version() + " fire-admin/" + testMessagingConfig.Version + if h := tr.Header.Get("x-goog-api-client"); h != xGoogAPIClientHeader { + t.Errorf("x-goog-api-client header = %q; want = %q", h, xGoogAPIClientHeader) } }