dangogh closed pull request #2737: Fix TO tests for parameter change
URL: https://github.com/apache/trafficcontrol/pull/2737
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/routing_test.go
b/traffic_ops/traffic_ops_golang/routing_test.go
index 315b6173f..9aa985cbd 100644
--- a/traffic_ops/traffic_ops_golang/routing_test.go
+++ b/traffic_ops/traffic_ops_golang/routing_test.go
@@ -37,7 +37,7 @@ type key int
const AuthWasCalled key = iota
func TestCreateRouteMap(t *testing.T) {
- authBase := AuthBase{"secret", "", func(handlerFunc http.HandlerFunc)
http.HandlerFunc {
+ authBase := AuthBase{"secret", func(handlerFunc http.HandlerFunc)
http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
ctx := context.WithValue(r.Context(), AuthWasCalled,
"true")
handlerFunc(w, r.WithContext(ctx))
diff --git a/traffic_ops/traffic_ops_golang/wrappers_test.go
b/traffic_ops/traffic_ops_golang/wrappers_test.go
index e170e37b5..710bb80d2 100644
--- a/traffic_ops/traffic_ops_golang/wrappers_test.go
+++ b/traffic_ops/traffic_ops_golang/wrappers_test.go
@@ -141,9 +141,7 @@ func TestWrapAuth(t *testing.T) {
rows.AddRow(30, "user1", 1, 1)
mock.ExpectQuery("SELECT").WithArgs(userName).WillReturnRows(rows)
- sqlStatement := getUserInfoStmt()
-
- authBase := AuthBase{secret, sqlStatement, nil}
+ authBase := AuthBase{secret, nil}
cookie := tocookie.New(userName, time.Now().Add(time.Minute), secret)
----------------------------------------------------------------
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