- avoid nil TaskError

This commit is contained in:
gazebo
2018-10-27 17:16:16 +08:00
parent 746502fbc3
commit abd8326511
4 changed files with 9 additions and 6 deletions

View File

@@ -4,7 +4,6 @@ import (
"testing"
"time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/model/dao"
)
@@ -37,11 +36,11 @@ func TestSyncOneStoreCategoriesFromLocal2Remote(t *testing.T) {
}
func TestGetAllRemoteSkus(t *testing.T) {
result, err := new(PurchaseHandler).GetAllRemoteSkus(9)
result, err := new(PurchaseHandler).GetAllRemoteSkus(testShopID)
if err != nil {
t.Fatal(err.Error())
} else {
t.Log(utils.Format4Output(result, false))
t.Log(len(result))
}
}