- sync store category.

This commit is contained in:
gazebo
2018-10-08 15:33:13 +08:00
parent 465f1f0431
commit 922e5175c7
11 changed files with 252 additions and 109 deletions

View File

@@ -2,6 +2,7 @@ package ebai
import (
"testing"
"time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model/dao"
@@ -13,6 +14,7 @@ func TestSyncStoreSkus(t *testing.T) {
if err != nil {
t.Fatal(err.Error())
}
time.Sleep(5 * time.Second)
}
func TestSyncOneStoreCategoriesFromRemote2Local(t *testing.T) {
@@ -25,7 +27,7 @@ func TestSyncOneStoreCategoriesFromRemote2Local(t *testing.T) {
func TestSyncOneStoreCategoriesFromLocal2Remote(t *testing.T) {
db := dao.GetDB()
err := new(PurchaseHandler).syncOneStoreCategoriesFromLocal2Remote(db, 100077, "autotest")
err := new(PurchaseHandler).SyncOneStoreCategories(db, 100077, "autotest")
if err != nil {
t.Fatal(err.Error())
}