dg4prez closed pull request #2160: Fixed failing TestGetServerUpdateStatus test
URL: https://github.com/apache/incubator-trafficcontrol/pull/2160
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/traffic_ops/traffic_ops_golang/server/servers_update_status_test.go 
b/traffic_ops/traffic_ops_golang/server/servers_update_status_test.go
index c72e2d725..0e77136ca 100644
--- a/traffic_ops/traffic_ops_golang/server/servers_update_status_test.go
+++ b/traffic_ops/traffic_ops_golang/server/servers_update_status_test.go
@@ -38,8 +38,8 @@ func TestGetServerUpdateStatus(t *testing.T) {
        db := sqlx.NewDb(mockDB, "sqlmock")
        defer db.Close()
 
-       serverStatusRow := sqlmock.NewRows([]string{"id", "host_name", "type", 
"combined_reval_pending", "upd_pending", "status", "parent_upd_pending", 
"parent_reval_pending"})
-       serverStatusRow.AddRow(1, "host_name_1", "EDGE", true, true, "ONLINE", 
true, false)
+       serverStatusRow := sqlmock.NewRows([]string{"id", "host_name", "type", 
"server_reval_pending", "use_reval_pending", "upd_pending", "status", 
"parent_upd_pending", "parent_reval_pending"})
+       serverStatusRow.AddRow(1, "host_name_1", "EDGE", true, true, true, 
"ONLINE", true, false)
 
        mock.ExpectQuery("SELECT").WillReturnRows(serverStatusRow)
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to