Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Oct 26, 2024
1 parent 3d4c39c commit 976a000
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/writers/indexList.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewIndexTableWriter(writer io.Writer, verbose bool, logger *slog.Logger) *I
"Unmerged",
"Vector Records",
"Size",
"Umerged %",
"Unmerged %",
}
verboseHeadings := append(table.Row{}, headings...)
verboseHeadings = append(
Expand Down
16 changes: 8 additions & 8 deletions e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,8 @@ func (suite *CmdTestSuite) TestSuccessfulListIndexCmd() {
},
cmd: "index list --no-color --format 1",
expectedTable: `Indexes
,Name,Namespace,Field,Dimensions,Distance Metric,Unmerged,Vector Records
1,list,test,vector,256,COSINE,0,0
,Name,Namespace,Field,Dimensions,Distance Metric,Unmerged,Vector Records,Size,Unmerged %
1,list,test,vector,256,COSINE,0,0,0 B,0%
`,
},
{
Expand All @@ -767,9 +767,9 @@ func (suite *CmdTestSuite) TestSuccessfulListIndexCmd() {
},
cmd: "index list --no-color --format 1",
expectedTable: `Indexes
,Name,Namespace,Set,Field,Dimensions,Distance Metric,Unmerged,Vector Records
1,list2,bar,barset,vector,256,HAMMING,0,0
2,list1,test,,vector,256,COSINE,0,0
,Name,Namespace,Set,Field,Dimensions,Distance Metric,Unmerged,Vector Records,Size,Unmerged %
1,list2,bar,barset,vector,256,HAMMING,0,0,0 B,0%
2,list1,test,,vector,256,COSINE,0,0,0 B,0%
`,
},
{
Expand All @@ -795,8 +795,8 @@ func (suite *CmdTestSuite) TestSuccessfulListIndexCmd() {
},
cmd: "index list --verbose --no-color --format 1",
expectedTable: `Indexes
,Name,Namespace,Set,Field,Dimensions,Distance Metric,Unmerged,Vector Records,Vertices,Labels*,Storage,Index Parameters
1,list2,bar,barset,vector,256,HAMMING,0,0,0,map[],"Namespace\,bar
,Name,Namespace,Set,Field,Dimensions,Distance Metric,Unmerged,Vector Records,Size,Unmerged %,Vertices,Labels*,Storage,Index Parameters
1,list2,bar,barset,vector,256,HAMMING,0,0,0 B,0%,0,map[],"Namespace\,bar
Set\,list2","HNSW
Max Edges\,16
Ef\,100
Expand All @@ -818,7 +818,7 @@ Healer Parallelism*\,1
Merge Index Parallelism*\,80
Merge Re-Index Parallelism*\,26
Enable Vector Integrity Check\,true"
2,list1,test,,vector,256,COSINE,0,0,0,map[foo:bar],"Namespace\,test
2,list1,test,,vector,256,COSINE,0,0,0 B,0%,0,map[foo:bar],"Namespace\,test
Set\,list1","HNSW
Max Edges\,16
Ef\,100
Expand Down

0 comments on commit 976a000

Please sign in to comment.