trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raw...@apache.org
Subject [trafficcontrol] 06/09: reverse condition to fix test
Date Fri, 02 Nov 2018 15:06:15 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 61ed509bba13e97bb7ade2e3146dff0b21c23b3a
Author: Dan Kirkwood <dangogh@apache.org>
AuthorDate: Tue Oct 30 11:20:56 2018 -0600

    reverse condition to fix test
---
 traffic_ops/testing/api/v14/cachegroups_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/testing/api/v14/cachegroups_test.go b/traffic_ops/testing/api/v14/cachegroups_test.go
index 672a48f..61b27c3 100644
--- a/traffic_ops/testing/api/v14/cachegroups_test.go
+++ b/traffic_ops/testing/api/v14/cachegroups_test.go
@@ -258,7 +258,7 @@ func CheckCacheGroupsAuthentication(t *testing.T) {
 	errors = append(errors, utils.ErrorAndMessage{err, fmt.Sprintf(errFormat, "DeleteCacheGroupByID")})
 
 	for _, err := range errors {
-		if err.Error == nil {
+		if err.Error != nil {
 			t.Error(err.Message)
 			failed = true
 		}


Mime
View raw message