feat: add timeout for video crawler

This commit is contained in:
lilong.129
2023-05-03 11:40:48 +08:00
parent d963885276
commit d27729edc6
5 changed files with 96 additions and 75 deletions

View File

@@ -88,7 +88,8 @@
20
],
"target_count": 3
}
},
"timeout": 600
}
}
]

View File

@@ -21,6 +21,7 @@ func TestAndroidVideoCrawlerTest(t *testing.T) {
Android().
VideoCrawler(map[string]interface{}{
"app_package_name": "com.ss.android.ugc.aweme",
"timeout": 600,
"feed": map[string]interface{}{
"target_count": 5,
"target_labels": []map[string]interface{}{