@@ -41,15 +41,14 @@ func TestTaskCreate(t *testing.T) {
4141 Notify : true ,
4242 CheckInvalidUsers : true ,
4343 },
44- Name : fmt .Sprintf ("test%d%d" , time .Now ().UnixNano (), rand .Intn (100 )),
45- Description : new ("< h1 > This is a test task < / h1 > "),
46- DescriptionContentType : new (projects.TaskDescriptionContentTypeHTML ),
47- Priority : new ("high "),
48- Progress : new (int64 (50 )),
49- StartAt : new (twapi.Date (time .Now ().Add (24 * time .Hour ))),
50- DueAt : new (twapi.Date (time .Now ().Add (48 * time .Hour ))),
51- EstimatedMinutes : new (int64 (120 )),
52- ParentTaskID : & parentTaskID ,
44+ Name : fmt .Sprintf ("test%d%d" , time .Now ().UnixNano (), rand .Intn (100 )),
45+ Description : new ("< h1 > This is a test task < / h1 > "),
46+ Priority : new ("high" ),
47+ Progress : new (int64 (50 )),
48+ StartAt : new (twapi.Date (time .Now ().Add (24 * time .Hour ))),
49+ DueAt : new (twapi.Date (time .Now ().Add (48 * time .Hour ))),
50+ EstimatedMinutes : new (int64 (120 )),
51+ ParentTaskID : & parentTaskID ,
5352 Assignees : & projects.UserGroups {
5453 UserIDs : []int64 {testResources .UserID },
5554 },
@@ -128,16 +127,15 @@ func TestTaskUpdate(t *testing.T) {
128127 Notify : true ,
129128 CheckInvalidUsers : true ,
130129 },
131- Name : new (fmt.Sprintf ("test%d%d" , time .Now ().UnixNano (), rand .Intn (100 ))),
132- Description : new ("< h1 > This is a test task < / h1 > "),
133- DescriptionContentType : new (projects.TaskDescriptionContentTypeHTML ),
134- Priority : new ("high "),
135- Progress : new (int64 (50 )),
136- StartAt : new (twapi.Date (time .Now ().Add (24 * time .Hour ))),
137- DueAt : new (twapi.Date (time .Now ().Add (48 * time .Hour ))),
138- EstimatedMinutes : new (int64 (120 )),
139- TasklistID : & testResources .TasklistID ,
140- ParentTaskID : & parentTaskID ,
130+ Name : new (fmt.Sprintf ("test%d%d" , time .Now ().UnixNano (), rand .Intn (100 ))),
131+ Description : new ("< h1 > This is a test task < / h1 > "),
132+ Priority : new ("high" ),
133+ Progress : new (int64 (50 )),
134+ StartAt : new (twapi.Date (time .Now ().Add (24 * time .Hour ))),
135+ DueAt : new (twapi.Date (time .Now ().Add (48 * time .Hour ))),
136+ EstimatedMinutes : new (int64 (120 )),
137+ TasklistID : & testResources .TasklistID ,
138+ ParentTaskID : & parentTaskID ,
141139 Assignees : & projects.UserGroups {
142140 UserIDs : []int64 {testResources .UserID },
143141 },
0 commit comments