gofmt
This commit is contained in:
parent
4cc9a7bcf4
commit
773da6323d
3 changed files with 15 additions and 15 deletions
|
|
@ -458,11 +458,11 @@ func TestCalculateRetryDelay(t *testing.T) {
|
|||
attempt int
|
||||
expected time.Duration
|
||||
}{
|
||||
{1, 200 * time.Millisecond}, // 100ms * 2^1
|
||||
{2, 400 * time.Millisecond}, // 100ms * 2^2
|
||||
{3, 800 * time.Millisecond}, // 100ms * 2^3
|
||||
{4, 1 * time.Second}, // capped at MaxDelay
|
||||
{5, 1 * time.Second}, // capped at MaxDelay
|
||||
{1, 200 * time.Millisecond}, // 100ms * 2^1
|
||||
{2, 400 * time.Millisecond}, // 100ms * 2^2
|
||||
{3, 800 * time.Millisecond}, // 100ms * 2^3
|
||||
{4, 1 * time.Second}, // capped at MaxDelay
|
||||
{5, 1 * time.Second}, // capped at MaxDelay
|
||||
}
|
||||
|
||||
for _, tc := range tests {
|
||||
|
|
|
|||
14
tasks.go
14
tasks.go
|
|
@ -54,13 +54,13 @@ func (s *TaskService) Get(ctx context.Context, taskID int) (*Task, error) {
|
|||
|
||||
// CreateTaskRequest represents the request body for creating a task.
|
||||
type CreateTaskRequest struct {
|
||||
Content string `json:"content"`
|
||||
ParentID int `json:"parent_id,omitempty"`
|
||||
Position int `json:"position,omitempty"`
|
||||
Due string `json:"due_date,omitempty"`
|
||||
Priority int `json:"priority,omitempty"`
|
||||
Tags string `json:"tags,omitempty"`
|
||||
Repeat string `json:"repeat,omitempty"`
|
||||
Content string `json:"content"`
|
||||
ParentID int `json:"parent_id,omitempty"`
|
||||
Position int `json:"position,omitempty"`
|
||||
Due string `json:"due_date,omitempty"`
|
||||
Priority int `json:"priority,omitempty"`
|
||||
Tags string `json:"tags,omitempty"`
|
||||
Repeat string `json:"repeat,omitempty"`
|
||||
}
|
||||
|
||||
// createTaskWrapper wraps the task fields for the nested JSON format
|
||||
|
|
|
|||
|
|
@ -480,9 +480,9 @@ func TestTasks_Create_RealAPIFormat(t *testing.T) {
|
|||
ChecklistID: 1,
|
||||
Content: content,
|
||||
Status: StatusOpen,
|
||||
Priority: 0, // Priority NOT set (ignored)
|
||||
DueDateRaw: "", // Due date NOT set (ignored)
|
||||
TagsAsText: "", // Tags NOT set (ignored)
|
||||
Priority: 0, // Priority NOT set (ignored)
|
||||
DueDateRaw: "", // Due date NOT set (ignored)
|
||||
TagsAsText: "", // Tags NOT set (ignored)
|
||||
CreatedAt: NewAPITime(time.Now()),
|
||||
UpdatedAt: NewAPITime(time.Now()),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue