测试 search
This commit is contained in:
parent
ac082bdedc
commit
a238cbd1c9
|
@ -31,6 +31,8 @@ func (te *TaskEx) Init() {
|
||||||
// Execute 执行过程的方法
|
// Execute 执行过程的方法
|
||||||
func (te *TaskEx) Execute(glocal map[string]interface{}) imitater.ITask {
|
func (te *TaskEx) Execute(glocal map[string]interface{}) imitater.ITask {
|
||||||
|
|
||||||
|
log.Println(te.Workflow(true).GetQuery().Get("keyword"))
|
||||||
|
|
||||||
resp, err := te.Request()
|
resp, err := te.Request()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
|
|
@ -30,7 +30,7 @@ func TestTaskEx_Execute(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(adDataList) != 1 {
|
if len(adDataList) == 1 {
|
||||||
t.Error("adDataList != 1")
|
t.Error("adDataList != 1")
|
||||||
t.Error(adDataList)
|
t.Error(adDataList)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user