Skip to content

Commit

Permalink
Whoops forgot 1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
aulorbe committed Aug 2, 2024
1 parent bccdc08 commit cff3084
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pinecone/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,13 @@ func (ts *IntegrationTests) TestApiKeyPassedToIndexConnection() {
assert.True(ts.T(), metadataHasApiKey, "Expected IndexConnection metadata to contain 'Api-Key' with value '%s'", apiKey)
}

func (ts *IntegrationTests) TestNoHostPassedToIndexConnection() {
_, err := ts.client.Index(NewIndexConnParams{})
require.ErrorContainsf(ts.T(), err, "host is required", err.Error())
// Unit tests:
func TestIndexConnectionMissingReqdFieldsUnit(t *testing.T) {
client := &Client{}
_, err := client.Index(NewIndexConnParams{})
require.ErrorContainsf(t, err, "field Host is required", err.Error())
}

// Unit tests:
func TestCreatePodIndexMissingReqdFieldsUnit(t *testing.T) {
client := &Client{}
_, err := client.CreatePodIndex(context.Background(), &CreatePodIndexRequest{})
Expand Down

0 comments on commit cff3084

Please sign in to comment.