Skip to content

Commit

Permalink
Trying again without log.Fatalf
Browse files Browse the repository at this point in the history
  • Loading branch information
aulorbe committed Jul 8, 2024
1 parent 1b49970 commit 018feb0
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions pinecone/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ func (ts *ClientTests) TestDeleteCollection() {
func (ts *ClientTests) TestConfigureIndexIllegalScaleDown() {
deleteErr := ts.client.DeleteIndex(context.Background(), ts.configureIndex)
if deleteErr != nil {
log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
//log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
fmt.Println("Found a delete error: ", deleteErr)

}
_, erdr := ts.client.CreatePodIndex(context.Background(), &CreatePodIndexRequest{
Name: ts.configureIndex,
Expand All @@ -530,7 +532,9 @@ func (ts *ClientTests) TestConfigureIndexIllegalScaleDown() {
func (ts *ClientTests) TestConfigureIndexScaleUpNoPods() {
deleteErr := ts.client.DeleteIndex(context.Background(), ts.configureIndex)
if deleteErr != nil {
log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
//log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
fmt.Println("Found a delete error: ", deleteErr)

}
_, erdr := ts.client.CreatePodIndex(context.Background(), &CreatePodIndexRequest{
Name: ts.configureIndex,
Expand All @@ -556,7 +560,9 @@ func (ts *ClientTests) TestConfigureIndexScaleUpNoPods() {
func (ts *ClientTests) TestConfigureIndexScaleUpNoReplicas() {
deleteErr := ts.client.DeleteIndex(context.Background(), ts.configureIndex)
if deleteErr != nil {
log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
//log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
fmt.Println("Found a delete error: ", deleteErr)

}
_, erdr := ts.client.CreatePodIndex(context.Background(), &CreatePodIndexRequest{
Name: ts.configureIndex,
Expand All @@ -582,7 +588,8 @@ func (ts *ClientTests) TestConfigureIndexScaleUpNoReplicas() {
func (ts *ClientTests) TestConfigureIndexIllegalNoPodsOrReplicas() {
deleteErr := ts.client.DeleteIndex(context.Background(), ts.configureIndex)
if deleteErr != nil {
log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
fmt.Println("Found a delete error: ", deleteErr)
//log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
}
_, erdr := ts.client.CreatePodIndex(context.Background(), &CreatePodIndexRequest{
Name: ts.configureIndex,
Expand All @@ -607,7 +614,9 @@ func (ts *ClientTests) TestConfigureIndexIllegalNoPodsOrReplicas() {
func (ts *ClientTests) TestConfigureIndexHitPodLimit() {
deleteErr := ts.client.DeleteIndex(context.Background(), ts.configureIndex)
if deleteErr != nil {
log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
//log.Fatalf("Error deleting index %s: %v", ts.configureIndex, deleteErr)
fmt.Println("Found a delete error: ", deleteErr)

}
_, erdr := ts.client.CreatePodIndex(context.Background(), &CreatePodIndexRequest{
Name: ts.configureIndex,
Expand Down

0 comments on commit 018feb0

Please sign in to comment.