- GetDeliveryRangeByStationNo added.
This commit is contained in:
@@ -55,8 +55,12 @@ func TestUpdateStoreInfo4Open(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
time.Sleep(2 * time.Second)
|
||||
result, err = jdapi.GetStoreInfoByStationNo(mustExistStoreID)
|
||||
newAddress := result["stationAddress"].(string)
|
||||
if newAddress != testAddress {
|
||||
t.Fatalf("address not match, newAddress:%s, oldAddress:%s", newAddress, oldAddress)
|
||||
}
|
||||
|
||||
addParams = map[string]interface{}{
|
||||
"stationAddress": oldAddress,
|
||||
}
|
||||
@@ -64,10 +68,7 @@ func TestUpdateStoreInfo4Open(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
restoredAddress := result["stationAddress"].(string)
|
||||
if restoredAddress != oldAddress {
|
||||
t.Fatalf("address not match, it's:%s", restoredAddress)
|
||||
}
|
||||
|
||||
}
|
||||
func TestGetCommentByOrderId(t *testing.T) {
|
||||
testOrderID := int64(819498819000341)
|
||||
|
||||
Reference in New Issue
Block a user