This is an automated email from the ASF dual-hosted git repository.

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 80878582dc2ef3913ced663e61a546c32b35b63c
Author: Dewayne Richardson <dewr...@apache.org>
AuthorDate: Mon Apr 2 10:44:41 2018 -0600

    fixed the unit test for profile_parameters
---
 .../profileparameter/profile_parameters_test.go            | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git 
a/traffic_ops/traffic_ops_golang/profileparameter/profile_parameters_test.go 
b/traffic_ops/traffic_ops_golang/profileparameter/profile_parameters_test.go
index ced1a11..a066c2e 100644
--- a/traffic_ops/traffic_ops_golang/profileparameter/profile_parameters_test.go
+++ b/traffic_ops/traffic_ops_golang/profileparameter/profile_parameters_test.go
@@ -36,19 +36,19 @@ func getTestProfileParameters() 
[]tc.ProfileParameterNullable {
        pps := []tc.ProfileParameterNullable{}
        lastUpdated := tc.TimeNoMod{}
        lastUpdated.Scan(time.Now())
-       profile := 1
-       parameter := 1
+       profileId := 1
+       parameterId := 1
 
        pp := tc.ProfileParameterNullable{
                LastUpdated: &lastUpdated,
-               Profile:     &profile,
-               Parameter:   &parameter,
+               ProfileId:   &profileId,
+               ParameterId: &parameterId,
        }
        pps = append(pps, pp)
 
        pp2 := pp
-       pp2.Profile = &profile
-       pp2.Parameter = &parameter
+       pp2.ProfileId = &profileId
+       pp2.ParameterId = &parameterId
        pps = append(pps, pp2)
 
        return pps
@@ -72,7 +72,9 @@ func TestGetProfileParameters(t *testing.T) {
                rows = rows.AddRow(
                        ts.LastUpdated,
                        ts.Profile,
+                       ts.ProfileId,
                        ts.Parameter,
+                       ts.ParameterId,
                )
        }
        mock.ExpectQuery("SELECT").WillReturnRows(rows)

-- 
To stop receiving notification emails like this one, please contact
mitchell...@apache.org.

Reply via email to