From 359433e070dabf88585be5838bd7dd3e0da58d33 Mon Sep 17 00:00:00 2001 From: Javad Date: Wed, 6 Nov 2024 11:21:29 +0330 Subject: [PATCH] chore: improve test get tasks --- index_task_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/index_task_test.go b/index_task_test.go index b89b2ed..80e53c1 100644 --- a/index_task_test.go +++ b/index_task_test.go @@ -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) {