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))