feat: 迁移 Admin Repository 到 MySQL 8 (#79)
This commit is contained in:
@@ -305,7 +305,7 @@ func TestListPddProducts_规格数(t *testing.T) {
|
||||
}
|
||||
|
||||
// skus_json 存进了坏数据时,列表页必须还能打开。
|
||||
// json_array_length 碰到非法 JSON 会让整条查询报错,那样页面直接白屏。
|
||||
// JSON_LENGTH 碰到非法 JSON 会让整条查询报错,那样页面直接白屏。
|
||||
func TestListPddProducts_坏掉的采集结果不影响列表打开(t *testing.T) {
|
||||
db := newTestDB(t)
|
||||
createProduct(t, db, "100000000001")
|
||||
@@ -843,7 +843,7 @@ func insertStaleCollectingProduct(t *testing.T, db *sql.DB, goodsID string) {
|
||||
INSERT INTO tasks (task_id, task_type, status, assigned_client,
|
||||
pdd_goods_url, pdd_goods_id, created_at, updated_at)
|
||||
VALUES (?, 'collect', 'claimed', 'client-已离线',
|
||||
'https://mobile.yangkeduo.com/goods.html?goods_id=' || ?, ?, ?, ?)`,
|
||||
CONCAT('https://mobile.yangkeduo.com/goods.html?goods_id=', ?), ?, ?, ?)`,
|
||||
"COL-STALE-"+goodsID, goodsID, goodsID, staleAt, staleAt); err != nil {
|
||||
t.Fatalf("构造卡死任务失败: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user