Skip to content

Commit

Permalink
Add primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
Strift committed Feb 8, 2025
1 parent d888301 commit c32e59f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meilisearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,8 @@ func Test_ListIndex(t *testing.T) {

for _, idx := range tt.Indexes {
info, err := c.CreateIndex(&IndexConfig{
Uid: idx,
Uid: idx,
PrimaryKey: "id", // Adding a default primary key
})
if tt.WantErr {
require.Error(t, err)
Expand Down

0 comments on commit c32e59f

Please sign in to comment.