Skip to content

Commit

Permalink
chore: improve test get tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Nov 6, 2024
1 parent b43b49b commit 359433e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ func TestIndex_GetTasks(t *testing.T) {
},
},
},
{
name: "TestTasksWithParams",
args: args{
UID: "indexUID",
client: sv,
document: []docTest{
{ID: "123", Name: "Pride and Prejudice"},
},
query: &TasksQuery{
Limit: 5,
From: 1,
Statuses: []TaskStatus{TaskStatusSucceeded},
Types: []TaskType{TaskTypeDocumentAdditionOrUpdate},
},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 359433e

Please sign in to comment.