Skip to content

Commit

Permalink
fix checking indexes after cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Sep 20, 2024
1 parent 7e3913a commit 2912ad7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pinecone/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ func (ts *LocalIntegrationTests) TearDownSuite() {
// Delete all remaining vectors
err = idxConn.DeleteAllVectorsInNamespace(context.Background())
require.NoError(ts.T(), err)

description, err := idxConn.DescribeIndexStats(context.Background())
require.NoError(ts.T(), err)
assert.NotNil(ts.T(), description, "Index description should not be nil")
assert.Equal(ts.T(), uint32(0), description.TotalVectorCount, "Total vector count should be 0 after deleting")
}

description, err := ts.idxConns[0].DescribeIndexStats(context.Background())
require.NoError(ts.T(), err)
assert.NotNil(ts.T(), description, "Index description should not be nil")
assert.Equal(ts.T(), uint32(0), description.TotalVectorCount, "Total vector count should be 0 after deleting")
}

// This is the entry point for all local integration tests
Expand Down

0 comments on commit 2912ad7

Please sign in to comment.