From 67b7090432f963b3a864e4d9415138bb832f4f60 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Fri, 3 May 2024 17:34:52 -0400 Subject: [PATCH] remove secret triggering fake variable --- pinecone/client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinecone/client_test.go b/pinecone/client_test.go index ad6d225..44a7228 100644 --- a/pinecone/client_test.go +++ b/pinecone/client_test.go @@ -146,7 +146,7 @@ func (ts *ClientTests) TestHeadersAppliedToRequests() { func (ts *ClientTests) TestAuthorizationHeaderOverridesApiKey() { apiKey := "test-api-key" - headers := map[string]string{"Authorization": "bearer abcd123467890"} + headers := map[string]string{"Authorization": "bearer foo"} httpClient := mocks.CreateMockClient(`{"indexes": []}`) client, err := NewClient(NewClientParams{ApiKey: apiKey, Headers: headers, RestClient: httpClient}) @@ -161,8 +161,8 @@ func (ts *ClientTests) TestAuthorizationHeaderOverridesApiKey() { apiKeyHeaderValue := mockTransport.Req.Header.Get("Api-Key") authHeaderValue := mockTransport.Req.Header.Get("Authorization") - if authHeaderValue != "bearer abcd123467890" { - ts.FailNow(fmt.Sprintf("Expected request to have header value 'bearer abcd123467890', but got '%s'", authHeaderValue)) + if authHeaderValue != "bearer foo" { + ts.FailNow(fmt.Sprintf("Expected request to have header value 'bearer foo', but got '%s'", authHeaderValue)) } if apiKeyHeaderValue != "" { ts.FailNow(fmt.Sprintf("Expected request to not have Api-Key header, but got '%s'", apiKeyHeaderValue))