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

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

commit de26d6e3c3de9d62804475190811c2cad1cf9014
Author: Jesse Rivas <jesse_ri...@comcast.com>
AuthorDate: Fri Apr 13 11:07:51 2018 -0600

    fixed parameters_test.go to clean up all params from db
---
 traffic_ops/testing/api/v13/parameters_test.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/traffic_ops/testing/api/v13/parameters_test.go 
b/traffic_ops/testing/api/v13/parameters_test.go
index 84a23a1..a8aa94e 100644
--- a/traffic_ops/testing/api/v13/parameters_test.go
+++ b/traffic_ops/testing/api/v13/parameters_test.go
@@ -56,8 +56,8 @@ func UpdateTestParameters(t *testing.T) {
                t.Errorf("cannot GET Parameter by name: %v - %v\n", 
firstParameter.Name, err)
        }
        remoteParameter := resp[0]
-       expectedParameterName := "UPDATED"
-       remoteParameter.Name = expectedParameterName
+       expectedParameterValue := "UPDATED"
+       remoteParameter.Value = expectedParameterValue
        var alert tc.Alerts
        alert, _, err = TOSession.UpdateParameterByID(remoteParameter.ID, 
remoteParameter)
        if err != nil {
@@ -70,8 +70,8 @@ func UpdateTestParameters(t *testing.T) {
                t.Errorf("cannot GET Parameter by name: %v - %v\n", 
firstParameter.Name, err)
        }
        respParameter := resp[0]
-       if respParameter.Name != expectedParameterName {
-               t.Errorf("results do not match actual: %s, expected: %s\n", 
respParameter.Name, expectedParameterName)
+       if respParameter.Value != expectedParameterValue {
+               t.Errorf("results do not match actual: %s, expected: %s\n", 
respParameter.Value, expectedParameterValue)
        }
 
 }

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

Reply via email to