作者 tangxvhui

调整测试

@@ -8,22 +8,17 @@ import ( @@ -8,22 +8,17 @@ import (
8 ) 8 )
9 9
10 func TestCheckYesterdayTaskRecord(t *testing.T) { 10 func TestCheckYesterdayTaskRecord(t *testing.T) {
11 - // nowDay := "2023-05-10"  
12 - // nowDay := "2023-05-11"  
13 - // nowDay := "2023-05-12"  
14 - // nowDay := "2023-05-13"  
15 - nowDay := "2023-05-14" 11 + nowDay := "2023-07-06"
16 taskRecordList, err := getYesterdayTaskRecord(nowDay) 12 taskRecordList, err := getYesterdayTaskRecord(nowDay)
17 if err != nil { 13 if err != nil {
18 t.Log("获取每日任务反馈" + err.Error()) 14 t.Log("获取每日任务反馈" + err.Error())
19 } 15 }
20 for _, val := range taskRecordList { 16 for _, val := range taskRecordList {
21 - err = checkTaskRecord(val) 17 + err = checkTaskRecordV3(val)
22 if err != nil { 18 if err != nil {
23 t.Log("检查每日任务反馈" + err.Error()) 19 t.Log("检查每日任务反馈" + err.Error())
24 } 20 }
25 } 21 }
26 -  
27 } 22 }
28 23
29 func TestCreatTaskAnamaly(t *testing.T) { 24 func TestCreatTaskAnamaly(t *testing.T) {
@@ -1395,7 +1395,6 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i @@ -1395,7 +1395,6 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i
1395 tk.Marks["d"] = val3.Marks["d"] 1395 tk.Marks["d"] = val3.Marks["d"]
1396 } 1396 }
1397 } 1397 }
1398 -  
1399 } 1398 }
1400 taskResult = append(taskResult, &tk) 1399 taskResult = append(taskResult, &tk)
1401 } 1400 }