You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/02/26 16:45:14 UTC
[incubator-trafficcontrol] 08/17: fixed GetID() interface change
This is an automated email from the ASF dual-hosted git repository.
dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit ed68a989c9828ff686620019a819b35b7576b9ab
Author: Dewayne Richardson <de...@apache.org>
AuthorDate: Wed Feb 21 12:55:33 2018 -0700
fixed GetID() interface change
---
.../traffic_ops_golang/physlocation/phys_locations_test.go | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/traffic_ops/traffic_ops_golang/physlocation/phys_locations_test.go b/traffic_ops/traffic_ops_golang/physlocation/phys_locations_test.go
index 26d25d7..27c0baa 100644
--- a/traffic_ops/traffic_ops_golang/physlocation/phys_locations_test.go
+++ b/traffic_ops/traffic_ops_golang/physlocation/phys_locations_test.go
@@ -43,8 +43,7 @@ func getTestPhysLocations() []tc.PhysLocation {
Name: "physLocation1",
Phone: "303-210-0000",
POC: "Dennis Thompson",
- RegionId: 1,
- Region: "Central",
+ RegionID: 1,
ShortName: "pl1",
State: "CO",
Zip: "80210",
@@ -83,8 +82,7 @@ func TestGetPhysLocations(t *testing.T) {
ts.Name,
ts.Phone,
ts.POC,
- ts.RegionId,
- ts.Region,
+ ts.RegionID,
ts.ShortName,
ts.State,
ts.Zip,
@@ -108,8 +106,8 @@ func TestInterfaces(t *testing.T) {
var i interface{}
i = &TOPhysLocation{}
- if _, ok := i.(api.Inserter); !ok {
- t.Errorf("PhysLocation must be Inserter")
+ if _, ok := i.(api.Creator); !ok {
+ t.Errorf("PhysLocation must be Creator")
}
if _, ok := i.(api.Reader); !ok {
t.Errorf("PhysLocation must be Reader")
--
To stop receiving notification emails like this one, please contact
dangogh@apache.org.