Skip to content

Commit

Permalink
fix test file
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Oct 15, 2024
1 parent bde3e30 commit 27de308
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pinecone/index_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ func (ts *IntegrationTests) TestImportFlow() {
startRes, err := ts.idxConn.StartImport(ctx, testImportUri, nil, nil)
assert.NoError(ts.T(), err)
assert.NotNil(ts.T(), startRes)
fmt.Printf("Import started with ID: %s\n", *startRes.Id)
fmt.Printf("Import started with ID: %s\n", startRes.Id)

assert.NotNil(ts.T(), startRes.Id)
describeRes, err := ts.idxConn.DescribeImport(ctx, *startRes.Id)
describeRes, err := ts.idxConn.DescribeImport(ctx, startRes.Id)
assert.NoError(ts.T(), err)
assert.NotNil(ts.T(), describeRes)
assert.Equal(ts.T(), *startRes.Id, *describeRes.Id)
assert.Equal(ts.T(), startRes.Id, describeRes.Id)

limit := int32(10)
listRes, err := ts.idxConn.ListImports(ctx, &ListImportsRequest{
Expand All @@ -298,7 +298,7 @@ func (ts *IntegrationTests) TestImportFlow() {
assert.NoError(ts.T(), err)
assert.NotNil(ts.T(), listRes)

err = ts.idxConn.CancelImport(ctx, *startRes.Id)
err = ts.idxConn.CancelImport(ctx, startRes.Id)
assert.NoError(ts.T(), err)
}

Expand Down Expand Up @@ -1056,7 +1056,7 @@ func TestNormalizeHostUnit(t *testing.T) {
}
}

func TestToPaginationToken(t *testing.T) {
func TestToPaginationTokenGrpc(t *testing.T) {
tokenForNilCase := ""
tokenForPositiveCase := "next-token"

Expand All @@ -1081,7 +1081,7 @@ func TestToPaginationToken(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := toPaginationToken(tt.token)
result := toPaginationTokenGrpc(tt.token)
assert.Equal(t, tt.expected, result, "Expected result to be '%s', but got '%s'", tt.expected, result)
})
}
Expand Down

0 comments on commit 27de308

Please sign in to comment.